From f8456987d8fe69176bdfd950d72496e213407edf Mon Sep 17 00:00:00 2001 From: DaMichel Date: Wed, 6 Jul 2016 15:44:30 +0200 Subject: make things compile for me, on M$ VC++ community edition 2015 update 3 --- CMakeLists.txt | 4 +++- csv/csv.h | 3 ++- opentrack-compat/timer.hpp | 2 +- opentrack/simple-mat.hpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee5c6c1e..b69f7860 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,9 @@ include(opentrack-qt) include(opentrack-platform) include(opentrack-boilerplate) include(opentrack-version) -include(opentrack-tarball) +if (~MSVC) + include(opentrack-tarball) +endif() include(opentrack-install) set(C CMakeLists.txt) diff --git a/csv/csv.h b/csv/csv.h index 06fe8d09..bb058586 100644 --- a/csv/csv.h +++ b/csv/csv.h @@ -25,5 +25,6 @@ private: int m_pos; static const QTextCodec* m_codec; - static const QRegExp m_rx, m_rx2; + static const QRegExp m_rx; + static const QRegExp m_rx2; // Silly M$ compiler! It will generate an error if both of these variables are declared on the same line! (M$ Visual Studio Community 2015, Update 3) }; diff --git a/opentrack-compat/timer.hpp b/opentrack-compat/timer.hpp index c048844c..9523c8c9 100644 --- a/opentrack-compat/timer.hpp +++ b/opentrack-compat/timer.hpp @@ -55,7 +55,7 @@ static inline void clock_gettime(int, struct timespec* ts) } # endif #endif -class OPENTRACK_COMPAT_EXPORT Timer +class Timer { private: struct timespec state; diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp index c8e7d903..04cd38ee 100644 --- a/opentrack/simple-mat.hpp +++ b/opentrack/simple-mat.hpp @@ -53,7 +53,7 @@ namespace { } template -class OPENTRACK_API_EXPORT Mat +class Mat { static_assert(h_ > 0 && w_ > 0, "must have positive mat dimensions"); num data[h_][w_]; -- cgit v1.2.3