aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 32a60f29..88cd659a 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -25,11 +25,11 @@
#include <stdint.h>
#include <stdio.h>
-#if defined(SERD_SHARED) && defined(SERD_INTERNAL) && defined(_WIN32)
+#if defined(_WIN32) && !defined(SERD_STATIC) && defined(SERD_INTERNAL)
# define SERD_API __declspec(dllexport)
-#elif defined(SERD_SHARED) && defined(_WIN32)
+#elif defined(_WIN32) && !defined(SERD_STATIC)
# define SERD_API __declspec(dllimport)
-#elif defined(SERD_SHARED) && defined(__GNUC__)
+#elif defined(__GNUC__)
# define SERD_API __attribute__((visibility("default")))
#else
# define SERD_API