Skip to content

Commit

Permalink
Move _GNU_SOURCE from CCFLAGS to CPPDEFINES (#8579)
Browse files Browse the repository at this point in the history
Makes _GNU_SOURCE visible in VSCode Intellisense and other IDEs.

Co-authored-by: Ivan Kravets <[email protected]>
  • Loading branch information
maxgerhardt and ivankravets committed May 28, 2022
1 parent 35c2ae1 commit c1144c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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",
Expand Down Expand Up @@ -125,6 +124,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()}",
Expand Down

0 comments on commit c1144c5

Please sign in to comment.