2016-12-21 07:46:30 +05:30
|
|
|
#ifndef GLIB_TEST_SYMBOL_VISIBILITY
|
|
|
|
#define GLIB_TEST_SYMBOL_VISIBILITY
|
|
|
|
|
|
|
|
/* This is the same check that's done in configure to create config.h */
|
|
|
|
#ifdef _WIN32
|
2022-10-05 17:40:57 -04:00
|
|
|
#ifdef GLIB_TEST_STATIC_COMPILATION
|
2022-01-19 14:19:05 +01:00
|
|
|
#define GLIB_TEST_EXPORT_SYMBOL extern
|
|
|
|
#else
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define GLIB_TEST_EXPORT_SYMBOL __declspec(dllexport) extern
|
|
|
|
#else
|
|
|
|
#define GLIB_TEST_EXPORT_SYMBOL __attribute__ ((visibility ("default"))) __declspec(dllexport) extern
|
|
|
|
#endif
|
|
|
|
#endif
|
2016-12-21 07:46:30 +05:30
|
|
|
/* Matches GCC and Clang */
|
|
|
|
#elif defined(__GNUC__) && (__GNUC__ >= 4)
|
|
|
|
# define GLIB_TEST_EXPORT_SYMBOL __attribute__((visibility("default"))) extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GLIB_TEST_SYMBOL_VISIBILITY */
|