mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Move _GNU_SOURCE from CCFLAGS to CPPDEFINES (#8579)
Makes _GNU_SOURCE visible in VSCode Intellisense and other IDEs. Co-authored-by: Ivan Kravets <me@ikravets.com>
This commit is contained in:
parent
35c2ae1cbb
commit
c1144c5740
@ -84,7 +84,6 @@ env.Append(
|
||||
"-mtext-section-literals",
|
||||
"-falign-functions=4",
|
||||
"-U__STRICT_ANSI__",
|
||||
"-D_GNU_SOURCE",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
"-Wall",
|
||||
@ -125,6 +124,7 @@ env.Append(
|
||||
("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()}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user