1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +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:
Maximilian Gerhardt 2022-05-28 20:17:33 +02:00 committed by GitHub
parent 35c2ae1cbb
commit c1144c5740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,6 @@ env.Append(
"-mtext-section-literals", "-mtext-section-literals",
"-falign-functions=4", "-falign-functions=4",
"-U__STRICT_ANSI__", "-U__STRICT_ANSI__",
"-D_GNU_SOURCE",
"-ffunction-sections", "-ffunction-sections",
"-fdata-sections", "-fdata-sections",
"-Wall", "-Wall",
@ -125,6 +124,7 @@ env.Append(
("F_CPU", "$BOARD_F_CPU"), ("F_CPU", "$BOARD_F_CPU"),
"__ets__", "__ets__",
"ICACHE_FLASH", "ICACHE_FLASH",
"_GNU_SOURCE",
("ARDUINO", 10805), ("ARDUINO", 10805),
("ARDUINO_BOARD", '\\"PLATFORMIO_%s\\"' % env.BoardConfig().id.upper()), ("ARDUINO_BOARD", '\\"PLATFORMIO_%s\\"' % env.BoardConfig().id.upper()),
"FLASHMODE_${BOARD_FLASH_MODE.upper()}", "FLASHMODE_${BOARD_FLASH_MODE.upper()}",