From 5e9dd436aa639b2698ccfd48eb8386856de29c78 Mon Sep 17 00:00:00 2001 From: Razi Alavizadeh Date: Thu, 20 Dec 2018 03:22:41 +0330 Subject: [PATCH] MSVC: Fix compile issues of JKQtFastPlotter --- lib/jkqtfastplotter.pri | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/jkqtfastplotter.pri b/lib/jkqtfastplotter.pri index 802b13867c..98f3e6003b 100644 --- a/lib/jkqtfastplotter.pri +++ b/lib/jkqtfastplotter.pri @@ -1,7 +1,15 @@ -QMAKE_CXXFLAGS += -fexceptions - +!win32-msvc* { + QMAKE_CXXFLAGS += -fexceptions +} else { + QMAKE_CXXFLAGS += /EHsc + # To enable M_PI, M_E,... + DEFINES += _USE_MATH_DEFINES + # To fix error: C2338: va_start argument must not + # have reference type and must not be parenthesized + DEFINES += _CRT_NO_VA_START_VALIDATION +} HEADERS += $$PWD/jkqtfastplotter/jkqtfastplotter.h \ $$PWD/jkqtplottertools/jkqtptools.h \