PahoMqttCpp
MQTT C++ Client for POSIX and Windows
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1
7
8
/*******************************************************************************
9
* Copyright (c) 2023 Frank Pagliughi <fpagliughi@mindspring.com>
10
*
11
* All rights reserved. This program and the accompanying materials
12
* are made available under the terms of the Eclipse Public License v2.0
13
* and Eclipse Distribution License v1.0 which accompany this distribution.
14
*
15
* The Eclipse Public License is available at
16
* http://www.eclipse.org/legal/epl-v20.html
17
* and the Eclipse Distribution License is available at
18
* http://www.eclipse.org/org/documents/edl-v10.php.
19
*
20
* Contributors:
21
* Frank Pagliughi - initial implementation and documentation
22
* Frank Pagliughi - MQTT v5 support
23
*******************************************************************************/
24
25
#ifndef __mqtt_export_h
26
#define __mqtt_export_h
27
28
#if defined(_WIN32) && defined(_MSC_VER)
29
#if defined(PAHO_MQTTPP_EXPORTS)
30
#define PAHO_MQTTPP_EXPORT __declspec(dllexport)
31
#elif defined(PAHO_MQTTPP_IMPORTS)
32
#define PAHO_MQTTPP_EXPORT __declspec(dllimport)
33
#else
34
#define PAHO_MQTTPP_EXPORT
35
#endif
36
#else
37
#if defined(PAHO_MQTTPP_EXPORTS)
38
#define PAHO_MQTTPP_EXPORT __attribute__((visibility("default")))
39
#else
40
#define PAHO_MQTTPP_EXPORT
41
#endif
42
#endif
43
44
#endif
// __mqtt_export_h
Generated on Mon Feb 3 2025 22:40:48 for PahoMqttCpp by
1.9.8