tgbot-cpp
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1#ifndef TGBOT_EXPORT_H
2#define TGBOT_EXPORT_H
3
4#ifndef TGBOT_API
5 #ifdef TGBOT_DLL
6 #if defined _WIN32 || defined __CYGWIN__
7 #define TGBOT_HELPER_DLL_EXPORT __declspec(dllexport)
8 #define TGBOT_HELPER_DLL_IMPORT __declspec(dllimport)
9 #else
10 #if __GNUC__ >= 4
11 #define TGBOT_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
12 #define TGBOT_HELPER_DLL_IMPORT __attribute__ ((visibility ("default")))
13 #else
14 #define TGBOT_HELPER_DLL_EXPORT
15 #define TGBOT_HELPER_DLL_IMPORT
16 #endif
17 #endif
18 #ifdef TgBot_EXPORTS
19 #define TGBOT_API TGBOT_HELPER_DLL_EXPORT
20 #else
21 #define TGBOT_API TGBOT_HELPER_DLL_IMPORT
22 #endif
23 #else
24 #define TGBOT_API
25 #endif
26#endif
27
28#endif //TGBOT_EXPORT_H