mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Enclose PROGMEM segment names in quotes (#5049)
__FILE__ is used to name the segments used for each PROGMEM constant, but __FILE__ may have a space in it. This would cause compilation errors. Add quotes around the entire segment name to work around this.
This commit is contained in:
parent
56b98fd4df
commit
831e75d79e
@ -21,7 +21,7 @@
|
|||||||
#define __STRINGIZE_NX(A) #A
|
#define __STRINGIZE_NX(A) #A
|
||||||
#define __STRINGIZE(A) __STRINGIZE_NX(A)
|
#define __STRINGIZE(A) __STRINGIZE_NX(A)
|
||||||
|
|
||||||
#define PROGMEM __attribute__((section( ".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "." __STRINGIZE(__COUNTER__))))
|
#define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "." __STRINGIZE(__COUNTER__) "\"")))
|
||||||
|
|
||||||
#define PGM_P const char *
|
#define PGM_P const char *
|
||||||
#define PGM_VOID_P const void *
|
#define PGM_VOID_P const void *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user