Skip to content

Commit b173558

Browse files
maxgerhardtivankravets
authored andcommitted
Move _GNU_SOURCE from CCFLAGS to CPPDEFINES (esp8266#8579)
Makes _GNU_SOURCE visible in VSCode Intellisense and other IDEs. Co-authored-by: Ivan Kravets <me@ikravets.com>
1 parent 3689a69 commit b173558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/platformio-build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def scons_patched_match_splitext(path, suffixes=None):
8484
"-mtext-section-literals",
8585
"-falign-functions=4",
8686
"-U__STRICT_ANSI__",
87-
"-D_GNU_SOURCE",
8887
"-ffunction-sections",
8988
"-fdata-sections",
9089
"-Wall",
@@ -125,6 +124,7 @@ def scons_patched_match_splitext(path, suffixes=None):
125124
("F_CPU", "$BOARD_F_CPU"),
126125
"__ets__",
127126
"ICACHE_FLASH",
127+
"_GNU_SOURCE",
128128
("ARDUINO", 10805),
129129
("ARDUINO_BOARD", '\\"PLATFORMIO_%s\\"' % env.BoardConfig().id.upper()),
130130
"FLASHMODE_${BOARD_FLASH_MODE.upper()}",

0 commit comments

Comments
 (0)