aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractormacros.h
blob: b2cb4b0a69d21ca2f0f1bea7f3b44d8f43c53f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef APIEXTRACTORMACROS_H
#define APIEXTRACTORMACROS_H


// APIEXTRACTOR_API is used for the public API symbols.
#if defined _WIN32 || defined __CYGWIN__
    #if APIEXTRACTOR_BUILD
        #define APIEXTRACTOR_API __declspec(dllimport)
    #else
        #define APIEXTRACTOR_API __declspec(dllexport)
    #endif
#else
    #if __GNUC__ >= 4
        #define APIEXTRACTOR_API __attribute__ ((visibility("default")))
    #else
        #define APIEXTRACTOR_API
    #endif
#endif

#endif