Skip to content

Commit 831e75d

Browse files
earlephilhowerdevyte
authored andcommitted
Enclose PROGMEM segment names in quotes (esp8266#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.
1 parent 56b98fd commit 831e75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/pgmspace.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define __STRINGIZE_NX(A) #A
2222
#define __STRINGIZE(A) __STRINGIZE_NX(A)
2323

24-
#define PROGMEM __attribute__((section( ".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "." __STRINGIZE(__COUNTER__))))
24+
#define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "." __STRINGIZE(__COUNTER__) "\"")))
2525

2626
#define PGM_P const char *
2727
#define PGM_VOID_P const void *

0 commit comments

Comments
 (0)