summaryrefslogtreecommitdiffhomepage
path: root/csv/csv.h
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/csv.h
parentd1ba0d9c0a20490afcd9b5cad5ba5fb2ff53fb93 (diff)
csv, proto/ft: workaround link bug on win32 with no lto
Need link dynamic, otherwise symbol lookup failure.
Diffstat (limited to 'csv/csv.h')
-rw-r--r--csv/csv.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/csv/csv.h b/csv/csv.h
index 940c02a6..06fe8d09 100644
--- a/csv/csv.h
+++ b/csv/csv.h
@@ -7,20 +7,16 @@
#include <QRegExp>
#include <QtGlobal>
-#ifdef BUILD_csv
-# define CSV_EXPORT Q_DECL_EXPORT
-#else
-# define CSV_EXPORT Q_DECL_IMPORT
-#endif
+#include "export.hpp"
-class CSV_EXPORT CSV
+class OPENTRACK_CSV_EXPORT CSV
{
public:
QString readLine();
bool parseLine(QStringList& ret);
void setCodec(const char* codecName);
- static bool getGameData(const int gameID, unsigned char* table, QString& gamename);
+ static bool getGameData(int gameID, unsigned char* table, QString& gamename);
private:
CSV(QIODevice* device);