summaryrefslogtreecommitdiffhomepage
path: root/csv/export.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-24 09:07:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-24 15:47:22 +0200
commit6d2cc8cf667c4e166c754698faac770a99aceeee (patch)
treedf75267ab10d2520fef09a22aeb9a4101e73b2c3 /csv/export.hpp
parentd1ba0d9c0a20490afcd9b5cad5ba5fb2ff53fb93 (diff)
csv, proto/ft: workaround link bug on win32 with no lto
Need link dynamic, otherwise symbol lookup failure.
Diffstat (limited to 'csv/export.hpp')
-rw-r--r--csv/export.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/csv/export.hpp b/csv/export.hpp
new file mode 100644
index 00000000..506833c4
--- /dev/null
+++ b/csv/export.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifdef BUILD_csv
+# ifdef _WIN32
+# define OPENTRACK_CSV_LINKAGE __declspec(dllexport)
+# else
+# define OPENTRACK_CSV_LINKAGE
+# endif
+
+# ifndef _MSC_VER
+# define OPENTRACK_CSV_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_CSV_LINKAGE
+# else
+# define OPENTRACK_CSV_EXPORT OPENTRACK_CSV_LINKAGE
+# endif
+
+#else
+# include "import.hpp"
+#endif