aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/145 recursive linking/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/145 recursive linking/lib.h')
-rw-r--r--meson/test cases/common/145 recursive linking/lib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/meson/test cases/common/145 recursive linking/lib.h b/meson/test cases/common/145 recursive linking/lib.h
new file mode 100644
index 000000000..b54bf3673
--- /dev/null
+++ b/meson/test cases/common/145 recursive linking/lib.h
@@ -0,0 +1,17 @@
+#if defined _WIN32
+ #ifdef MESON_STATIC_BUILD
+ #define SYMBOL_EXPORT
+ #define SYMBOL_IMPORT
+ #else
+ #define SYMBOL_IMPORT __declspec(dllimport)
+ #define SYMBOL_EXPORT __declspec(dllexport)
+ #endif
+#else
+ #define SYMBOL_IMPORT
+ #if defined __GNUC__
+ #define SYMBOL_EXPORT __attribute__ ((visibility("default")))
+ #else
+ #pragma message ("Compiler does not support symbol visibility.")
+ #define SYMBOL_EXPORT
+ #endif
+#endif