(root)/
glib-2.79.0/
gio/
tests/
modules/
symbol-visibility.h
       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 GLIB_TEST_STATIC_COMPILATION
       7  #define GLIB_TEST_EXPORT_SYMBOL extern
       8  #else
       9  #ifdef _MSC_VER
      10  #define GLIB_TEST_EXPORT_SYMBOL __declspec(dllexport) extern
      11  #else
      12  #define GLIB_TEST_EXPORT_SYMBOL __attribute__ ((visibility ("default"))) __declspec(dllexport) extern
      13  #endif
      14  #endif
      15  /* Matches GCC and Clang */
      16  #elif defined(__GNUC__) && (__GNUC__ >= 4)
      17  # define GLIB_TEST_EXPORT_SYMBOL __attribute__((visibility("default"))) extern
      18  #endif
      19  
      20  #endif /* GLIB_TEST_SYMBOL_VISIBILITY */