|
@@ -34,13 +34,15 @@
|
|
#include <cstddef>
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <cstdint>
|
|
|
|
|
|
-#ifdef __GNUC__
|
|
|
|
-#define GDN_EXPORT __attribute__((visibility("default")))
|
|
|
|
-#elif defined(_WIN32)
|
|
|
|
|
|
+#if !defined(GDN_EXPORT)
|
|
|
|
+#if defined(_WIN32)
|
|
#define GDN_EXPORT __declspec(dllexport)
|
|
#define GDN_EXPORT __declspec(dllexport)
|
|
|
|
+#elif defined(__GNUC__)
|
|
|
|
+#define GDN_EXPORT __attribute__((visibility("default")))
|
|
#else
|
|
#else
|
|
#define GDN_EXPORT
|
|
#define GDN_EXPORT
|
|
#endif
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
|
|
// Turn argument to string constant:
|
|
// Turn argument to string constant:
|
|
// https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing
|
|
// https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing
|