try to fix C++1-issues for VisualStudio

This commit is contained in:
jkriege2 2019-01-20 17:07:43 +01:00
parent b539d8af59
commit aad32df585
2 changed files with 10 additions and 2 deletions

View File

@ -21,7 +21,15 @@ CONFIG (debug, debug|release) {
}
message("LIBS = $$LIBS")
win32-msvc*: DEFINES += _USE_MATH_DEFINES
win32-msvc* {
QMAKE_CXXFLAGS += /EHsc /std:c++14
# 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
}
# here you can activate some debug options
#DEFINES += SHOW_JKQTPLOTTER_DEBUG

View File

@ -2,7 +2,7 @@
!win32-msvc* {
QMAKE_CXXFLAGS += -fexceptions
} else {
QMAKE_CXXFLAGS += /EHsc
QMAKE_CXXFLAGS += /EHsc /std:c++14
# To enable M_PI, M_E,...
DEFINES += _USE_MATH_DEFINES
# To fix error: C2338: va_start argument must not