From 6ef70f7b55e97f4babc60efcccfc6d45a3941e15 Mon Sep 17 00:00:00 2001 From: Razi Alavizadeh Date: Wed, 5 Dec 2018 21:37:53 +0330 Subject: [PATCH] MSVC: Define _USE_MATH_DEFINES in some other project files --- test/jkqtplot_test/jkqtplot_test.pro | 2 ++ test/simpletest/jkqtplotter_simpletest.pro | 2 ++ test/simpletest_speed/jkqtplotter_simpletest_speed.pro | 2 ++ .../jkqtplotter_simpletest_symbols_and_errors.pro | 1 + .../jkqtplotter_simpletest_symbols_and_styles.pro | 1 + 5 files changed, 8 insertions(+) diff --git a/test/jkqtplot_test/jkqtplot_test.pro b/test/jkqtplot_test/jkqtplot_test.pro index 8d27e1b289..eb27a2993c 100644 --- a/test/jkqtplot_test/jkqtplot_test.pro +++ b/test/jkqtplot_test/jkqtplot_test.pro @@ -33,6 +33,8 @@ CONFIG += qt win32: LIBS += -lgdi32 +win32-msvc*: DEFINES += _USE_MATH_DEFINES + #QMAKE_CXXFLAGS += -O2 DEFINES -= -DQT_DLL diff --git a/test/simpletest/jkqtplotter_simpletest.pro b/test/simpletest/jkqtplotter_simpletest.pro index 1cab7ee706..8127cf1bfa 100644 --- a/test/simpletest/jkqtplotter_simpletest.pro +++ b/test/simpletest/jkqtplotter_simpletest.pro @@ -15,6 +15,8 @@ INCLUDEPATH += ../../lib CONFIG (debug, debug|release):LIBS += -L../../lib/debug -ljkqtplotterlib CONFIG (release):LIBS += -L../../lib/release -ljkqtplotterlib +win32-msvc*: DEFINES += _USE_MATH_DEFINES + # here you can activate some debug options #DEFINES += SHOW_JKQTPLOTTER_DEBUG #DEFINES += JKQTBP_AUTOTIMER diff --git a/test/simpletest_speed/jkqtplotter_simpletest_speed.pro b/test/simpletest_speed/jkqtplotter_simpletest_speed.pro index 5f32c2987a..695a4905ea 100644 --- a/test/simpletest_speed/jkqtplotter_simpletest_speed.pro +++ b/test/simpletest_speed/jkqtplotter_simpletest_speed.pro @@ -16,6 +16,8 @@ INCLUDEPATH += ../../lib CONFIG (debug, debug|release):LIBS += -L../../lib/debug -ljkqtplotterlib CONFIG (release):LIBS += -L../../lib/release -ljkqtplotterlib +win32-msvc*: DEFINES += _USE_MATH_DEFINES + # here you can activate some debug options #DEFINES += SHOW_JKQTPLOTTER_DEBUG #DEFINES += JKQTBP_AUTOTIMER diff --git a/test/simpletest_symbols_and_errors/jkqtplotter_simpletest_symbols_and_errors.pro b/test/simpletest_symbols_and_errors/jkqtplotter_simpletest_symbols_and_errors.pro index 1717b39df3..031fbbdf17 100644 --- a/test/simpletest_symbols_and_errors/jkqtplotter_simpletest_symbols_and_errors.pro +++ b/test/simpletest_symbols_and_errors/jkqtplotter_simpletest_symbols_and_errors.pro @@ -16,6 +16,7 @@ INCLUDEPATH += ../../lib CONFIG (debug, debug|release):LIBS += -L../../lib/debug -ljkqtplotterlib CONFIG (release):LIBS += -L../../lib/release -ljkqtplotterlib +win32-msvc*: DEFINES += _USE_MATH_DEFINES # here you can activate some debug options #DEFINES += SHOW_JKQTPLOTTER_DEBUG diff --git a/test/simpletest_symbols_and_styles/jkqtplotter_simpletest_symbols_and_styles.pro b/test/simpletest_symbols_and_styles/jkqtplotter_simpletest_symbols_and_styles.pro index c795e203fc..c65c02f88d 100644 --- a/test/simpletest_symbols_and_styles/jkqtplotter_simpletest_symbols_and_styles.pro +++ b/test/simpletest_symbols_and_styles/jkqtplotter_simpletest_symbols_and_styles.pro @@ -16,6 +16,7 @@ INCLUDEPATH += ../../lib CONFIG (debug, debug|release):LIBS += -L../../lib/debug -ljkqtplotterlib CONFIG (release):LIBS += -L../../lib/release -ljkqtplotterlib +win32-msvc*: DEFINES += _USE_MATH_DEFINES # here you can activate some debug options #DEFINES += SHOW_JKQTPLOTTER_DEBUG