summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpv/client.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index 85d302a76a..07ab7d44bc 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -27,10 +27,10 @@
#include <stdint.h>
/* New symbols must still be added to libmpv/mpv.def. */
-#if defined(__GNUC__) || defined(__clang__)
-#define MPV_EXPORT __attribute__((visibility("default")))
-#elif defined(_MSC_VER)
+#ifdef _WIN32
#define MPV_EXPORT __declspec(dllexport)
+#elif defined(__GNUC__) || defined(__clang__)
+#define MPV_EXPORT __attribute__((visibility("default")))
#else
#define MPV_EXPORT
#endif