From 592b4517a57fdcd92cfce123905d7abf0b5f9aa7 Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Sun, 22 May 2022 11:59:32 +0200 Subject: [PATCH] Move _GNU_SOURCE from CCFLAGS to CPPDEFINES Makes _GNU_SOURCE visible in VSCode Intellisense and other IDEs. --- tools/platformio-build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/platformio-build.py b/tools/platformio-build.py index a462ff391a..5d5cb0c0b6 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", @@ -119,6 +118,7 @@ def scons_patched_match_splitext(path, suffixes=None): ("F_CPU", "$BOARD_F_CPU"), "__ets__", "ICACHE_FLASH", + "_GNU_SOURCE", ("ARDUINO", 10805), ("ARDUINO_BOARD", '\\"PLATFORMIO_%s\\"' % env.BoardConfig().id.upper()), "FLASHMODE_${BOARD_FLASH_MODE.upper()}",