MSVC: Define _USE_MATH_DEFINES to enable M_PI, M_E,...

This commit is contained in:
Razi Alavizadeh 2018-12-05 01:45:11 +03:30
parent d160668bc6
commit 656e066d25

View File

@ -3,6 +3,8 @@
QMAKE_CXXFLAGS += -fexceptions QMAKE_CXXFLAGS += -fexceptions
} else { } else {
QMAKE_CXXFLAGS += /EHsc QMAKE_CXXFLAGS += /EHsc
# To enable M_PI, M_E,...
DEFINES += _USE_MATH_DEFINES
} }
HEADERS += $$PWD/jkqtplotter/jkqtpbaseplotter.h \ HEADERS += $$PWD/jkqtplotter/jkqtpbaseplotter.h \