8000 Enclose PROGMEM segment names in quotes by earlephilhower · Pull Request #5049 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Enclose PROGMEM segment names in quotes #5049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Enclose PROGMEM segment names in quotes
__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 committed Aug 15, 2018
commit 857b66cf8aeeb150e769df3d7658efb878719945
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