From 175dee55dd4a1d31cd0220efc085fa3d195d84cc Mon Sep 17 00:00:00 2001 From: BlueAndi Date: Fri, 8 Nov 2024 18:59:05 +0100 Subject: [PATCH] Add "_USE_MATH_DEFINES" to test HAL too. --- platformio.ini | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 3c77179..730a929 100644 --- a/platformio.ini +++ b/platformio.ini @@ -95,9 +95,9 @@ test_port = com9 platform = native @ ~1.2.1 build_flags = -std=c++11 - -DTARGET_NATIVE -I./lib/Webots/include/c -I./lib/Webots/include/cpp + -D TARGET_NATIVE -D _USE_MATH_DEFINES lib_deps = MainNative @@ -122,9 +122,10 @@ webots_robot_serial_tx_channel = 2 platform = native @ ~1.2.1 build_flags = -std=c++11 - -DTARGET_NATIVE - -DUNIT_TEST -Itest/common + -D TARGET_NATIVE + -D UNIT_TEST + -D _USE_MATH_DEFINES lib_deps = MainTestNative BlueAndi/ArduinoNative @ ~0.2.1