• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef GLIB_TEST_SYMBOL_VISIBILITY
2 #define GLIB_TEST_SYMBOL_VISIBILITY
3 
4 /* This is the same check that's done in configure to create config.h */
5 #ifdef _WIN32
6 # ifdef _MSC_VER
7 #  define GLIB_TEST_EXPORT_SYMBOL __declspec(dllexport) extern
8 # else
9 #  define GLIB_TEST_EXPORT_SYMBOL __attribute__((visibility("default"))) __declspec(dllexport) extern
10 # endif
11 /* Matches GCC and Clang */
12 #elif defined(__GNUC__) && (__GNUC__ >= 4)
13 # define GLIB_TEST_EXPORT_SYMBOL __attribute__((visibility("default"))) extern
14 #endif
15 
16 #endif /* GLIB_TEST_SYMBOL_VISIBILITY */
17