From a64cd377c78ce9c5a8184e114d826e80729aaab6 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 28 May 2022 20:55:22 +0300 Subject: [PATCH] Move a macro to the CPPDEFINES scope --- tools/platformio-build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/platformio-build.py b/tools/platformio-build.py index a462ff391a..c959472f45 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -78,7 +78,6 @@ def scons_patched_match_splitext(path, suffixes=None): "-mtext-section-literals", "-falign-functions=4", "-U__STRICT_ANSI__", - "-D_GNU_SOURCE", "-ffunction-sections", "-fdata-sections", "-Wall", @@ -122,7 +121,8 @@ def scons_patched_match_splitext(path, suffixes=None): ("ARDUINO", 10805), ("ARDUINO_BOARD", '\\"PLATFORMIO_%s\\"' % env.BoardConfig().id.upper()), "FLASHMODE_${BOARD_FLASH_MODE.upper()}", - "LWIP_OPEN_SRC" + "LWIP_OPEN_SRC", + "_GNU_SOURCE", ], # The list of directories that the C preprocessor will search for include directories