From cc16fd0121fe79ae1fd9539a606c19827f64bc23 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 1 Nov 2015 08:36:28 +0100 Subject: use newly-added preprocessor variable --- csv/csv.cpp | 1 - csv/csv.h | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'csv') diff --git a/csv/csv.cpp b/csv/csv.cpp index 2193ed80..26a36b70 100644 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -8,7 +8,6 @@ * purpose with or without fee is hereby granted, provided that the above * * copyright notice and this permission notice appear in all copies. * */ -#define INSIDE_CSV #include "csv.h" #include #include diff --git a/csv/csv.h b/csv/csv.h index a896a076..7ae1ad5c 100644 --- a/csv/csv.h +++ b/csv/csv.h @@ -1,4 +1,5 @@ #pragma once +#include #include #include #include @@ -6,7 +7,13 @@ #include #include -class CSV +#ifdef BUILD_opentrack_csv +# define CSV_EXPORT Q_DECL_EXPORT +#else +# define CSV_EXPORT Q_DECL_IMPORT +#endif + +class CSV_EXPORT CSV { public: QString readLine(); -- cgit v1.2.3