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 \