Port: win32 DLLs don't support hidden symbols
[babeltrace.git] / include / babeltrace / babeltrace-internal.h
index 0e73cdbf1f4696164e2c1591a0aaab2934bc042e..6f8e2006a9e2c3ea5bfc35baba37c3e05f47d8b4 100644 (file)
@@ -161,8 +161,14 @@ extern int babeltrace_verbose, babeltrace_debug;
 
 /*
  * BT_HIDDEN: set the hidden attribute for internal functions
+ * On Windows, symbols are local unless explicitly exported,
+ * see https://gcc.gnu.org/wiki/Visibility
  */
+#if defined(_WIN32) || defined(__CYGWIN__)
+#define BT_HIDDEN
+#else
 #define BT_HIDDEN __attribute__((visibility("hidden")))
+#endif
 
 #define BT_CTF_MAJOR   1
 #define BT_CTF_MINOR   8
This page took 0.023864 seconds and 4 git commands to generate.