Merge branch 'g-clear-pointer-no-side-effects' into 'master'
[glib.git] / gio / tests / modules / symbol-visibility.h
blobf9f8826ce9e94499b46d0756fb7a5b958b5f71d4
1 #ifndef GLIB_TEST_SYMBOL_VISIBILITY
2 #define GLIB_TEST_SYMBOL_VISIBILITY
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
16 #endif /* GLIB_TEST_SYMBOL_VISIBILITY */