From 6d2cc8cf667c4e166c754698faac770a99aceeee Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Jun 2016 09:07:52 +0200 Subject: csv, proto/ft: workaround link bug on win32 with no lto Need link dynamic, otherwise symbol lookup failure. --- csv/export.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 csv/export.hpp (limited to 'csv/export.hpp') 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 -- cgit v1.2.3