summaryrefslogtreecommitdiffhomepage
path: root/opentrack/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/export.hpp')
-rw-r--r--opentrack/export.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/opentrack/export.hpp b/opentrack/export.hpp
index 8c8bdc69..f0983b75 100644
--- a/opentrack/export.hpp
+++ b/opentrack/export.hpp
@@ -1,7 +1,13 @@
#pragma once
+
#ifdef _WIN32
# define OPENTRACK_LINKAGE __declspec(dllexport)
#else
# define OPENTRACK_LINKAGE
#endif
-#define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
+
+#ifndef _MSC_VER
+# define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
+#else
+# define OPENTRACK_EXPORT OPENTRACK_LINKAGE
+#endif \ No newline at end of file