summaryrefslogtreecommitdiffhomepage
path: root/cv/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cv/export.hpp')
-rw-r--r--cv/export.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/cv/export.hpp b/cv/export.hpp
new file mode 100644
index 00000000..6636e56b
--- /dev/null
+++ b/cv/export.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#ifdef BUILD_cv
+# ifdef _WIN32
+# define OPENTRACK_CV_LINKAGE __declspec(dllexport)
+# else
+# define OPENTRACK_CV_LINKAGE
+# endif
+
+# ifndef _MSC_VER
+# define OPENTRACK_CV_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_CV_LINKAGE
+# else
+# define OPENTRACK_CV_EXPORT OPENTRACK_CV_LINKAGE
+# endif
+
+#else
+ #ifdef _WIN32
+ # define OPENTRACK_CV_LINKAGE __declspec(dllimport)
+ #else
+ # define OPENTRACK_CV_LINKAGE
+ #endif
+
+ #ifndef _MSC_VER
+ # define OPENTRACK_CV_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_CV_LINKAGE
+ #else
+ # define OPENTRACK_CV_EXPORT OPENTRACK_CV_LINKAGE
+ #endif
+#endif