blob: b54bf3673c9c7d058a6409543528c668cc312f42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#if defined _WIN32
#ifdef MESON_STATIC_BUILD
#define SYMBOL_EXPORT
#define SYMBOL_IMPORT
#else
#define SYMBOL_IMPORT __declspec(dllimport)
#define SYMBOL_EXPORT __declspec(dllexport)
#endif
#else
#define SYMBOL_IMPORT
#if defined __GNUC__
#define SYMBOL_EXPORT __attribute__ ((visibility("default")))
#else
#pragma message ("Compiler does not support symbol visibility.")
#define SYMBOL_EXPORT
#endif
#endif
|