21 lines
420 B
C
21 lines
420 B
C
|
#ifndef DLL_PUBLIC
|
||
|
|
||
|
#if defined _WIN32
|
||
|
#ifdef __GNUC__
|
||
|
#define DLL_PUBLIC __attribute__ ((dllexport))
|
||
|
#else
|
||
|
#define DLL_PUBLIC __declspec(dllexport)
|
||
|
#endif
|
||
|
#define DLL_LOCAL
|
||
|
#else
|
||
|
#if __GNUC__ >= 4
|
||
|
#define DLL_PUBLIC __attribute__ ((visibility ("default")))
|
||
|
#define DLL_LOCAL __attribute__ ((visibility ("hidden")))
|
||
|
#else
|
||
|
#define DLL_PUBLIC
|
||
|
#define DLL_LOCAL
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
#endif
|