summaryrefslogtreecommitdiff
path: root/include/tgbot/export.h
blob: b38f1fc8b78618efd03e43d47a02b3dddd3be2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef TGBOT_EXPORT_H
#define TGBOT_EXPORT_H

#ifndef TGBOT_API
    #ifdef TGBOT_DLL
        #if defined _WIN32 || defined __CYGWIN__
            #define TGBOT_HELPER_DLL_IMPORT __declspec(dllimport)
            #define TGBOT_HELPER_DLL_EXPORT __declspec(dllexport)
        #else
            #if __GNUC__ >= 4
                #define TGBOT_HELPER_DLL_IMPORT __attribute__ ((visibility ("default")))
                #define TGBOT_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
            #else
                #define TGBOT_HELPER_DLL_IMPORT
                #define TGBOT_HELPER_DLL_EXPORT
            #endif
        #endif
        #ifdef TgBot_EXPORTS
            #define TGBOT_API TGBOT_HELPER_DLL_EXPORT
        #else
            #define FOX_API TGBOT_HELPER_DLL_IMPORT
        #endif
    #else
        #define TGBOT_API
    #endif
#endif

#endif //TGBOT_EXPORT_H