summaryrefslogtreecommitdiffhomepage
path: root/csv
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-28 11:00:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-03-28 11:08:56 +0200
commit7337f89f4d69cc0e5fe3a72f9f6773ecf9b24cc5 (patch)
treed24194237167fa7a1e5303b78c8bc2b2017475b7 /csv
parent783739a2f3599e00869f907ed1747491b35486b1 (diff)
start renaming internal macros as OPENTRACK_* to OTR_*
Diffstat (limited to 'csv')
-rw-r--r--csv/csv.h2
-rw-r--r--csv/export.hpp29
2 files changed, 7 insertions, 24 deletions
diff --git a/csv/csv.h b/csv/csv.h
index bb058586..e88a10b2 100644
--- a/csv/csv.h
+++ b/csv/csv.h
@@ -9,7 +9,7 @@
#include "export.hpp"
-class OPENTRACK_CSV_EXPORT CSV
+class OTR_CSV_EXPORT CSV
{
public:
QString readLine();
diff --git a/csv/export.hpp b/csv/export.hpp
index eb8d723f..7d7dbe29 100644
--- a/csv/export.hpp
+++ b/csv/export.hpp
@@ -1,28 +1,11 @@
-#pragma once
+// generates export.hpp for each module from compat/linkage.hpp
-#ifdef BUILD_csv
-# ifdef _WIN32
-# define OPENTRACK_CSV_LINKAGE __declspec(dllexport)
-# else
-# define OPENTRACK_CSV_LINKAGE
-# endif
+#pragma once
-# ifndef _MSC_VER
-# define OPENTRACK_CSV_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_CSV_LINKAGE
-# else
-# define OPENTRACK_CSV_EXPORT OPENTRACK_CSV_LINKAGE
-# endif
+#include "compat/linkage-macros.hpp"
+#ifdef BUILD_CSV
+# define OTR_CSV_EXPORT OTR_GENERIC_EXPORT
#else
- #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
+# define OTR_CSV_EXPORT OTR_GENERIC_IMPORT
#endif