Go to the documentation of this file. 25 #ifndef IMPORT_EXPORT_H_ 26 #define IMPORT_EXPORT_H_ 32 #define APIEXPORT __declspec(dllexport) 33 #define APIIMPORT __declspec(dllimport) 36 #elif defined(__GNUC__) && __GNUC__ >= 4 38 #define APIEXPORT __attribute__ ((visibility("default"))) 39 #define APIIMPORT __attribute__ ((visibility("default"))) 40 #define APILOCAL __attribute__ ((visibility("hidden"))) 43 #pragma message ( "warning: a supported C++ compiler is required" ) 50 #if defined(COMPILING_DLL) 53 #define MY_API(rettype) APIEXPORT rettype 55 #define MY_API(rettype) APIIMPORT rettype 58 #define MY_LOCAL(rettype) APILOCAL rettype 60 #endif // IMPORT_EXPORT_H_