mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +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")
|
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
|
# here you can activate some debug options
|
||||||
#DEFINES += SHOW_JKQTPLOTTER_DEBUG
|
#DEFINES += SHOW_JKQTPLOTTER_DEBUG
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
!win32-msvc* {
|
!win32-msvc* {
|
||||||
QMAKE_CXXFLAGS += -fexceptions
|
QMAKE_CXXFLAGS += -fexceptions
|
||||||
} else {
|
} else {
|
||||||
QMAKE_CXXFLAGS += /EHsc
|
QMAKE_CXXFLAGS += /EHsc /std:c++14
|
||||||
# To enable M_PI, M_E,...
|
# To enable M_PI, M_E,...
|
||||||
DEFINES += _USE_MATH_DEFINES
|
DEFINES += _USE_MATH_DEFINES
|
||||||
# To fix error: C2338: va_start argument must not
|
# To fix error: C2338: va_start argument must not
|
||||||
|
Loading…
Reference in New Issue
Block a user