Skip to content

Commit

Permalink
Enclose PROGMEM segment names in quotes (#5049)
Browse files Browse the repository at this point in the history
__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.
  • Loading branch information
earlephilhower authored and devyte committed Aug 15, 2018
1 parent 56b98fd commit 831e75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/pgmspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define __STRINGIZE_NX(A) #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_VOID_P const void *
Expand Down

0 comments on commit 831e75d

Please sign in to comment.