1
0
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:
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",
"-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()}",