mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-24 09:31:40 +08:00
try to fix C++1-issues for VisualStudio
This commit is contained in:
parent
b539d8af59
commit
aad32df585
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user