diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-24 09:07:52 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-24 15:47:22 +0200 |
commit | 6d2cc8cf667c4e166c754698faac770a99aceeee (patch) | |
tree | df75267ab10d2520fef09a22aeb9a4101e73b2c3 /csv/import.hpp | |
parent | d1ba0d9c0a20490afcd9b5cad5ba5fb2ff53fb93 (diff) |
csv, proto/ft: workaround link bug on win32 with no lto
Need link dynamic, otherwise symbol lookup failure.
Diffstat (limited to 'csv/import.hpp')
-rw-r--r-- | csv/import.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/csv/import.hpp b/csv/import.hpp new file mode 100644 index 00000000..5fcfdd58 --- /dev/null +++ b/csv/import.hpp @@ -0,0 +1,13 @@ +#pragma once + +#ifdef _WIN32 +# define OPENTRACK_CSV_LINKAGE __declspec(dllimport) +#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 |