From 857b66cf8aeeb150e769df3d7658efb878719945 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 15 Aug 2018 10:34:10 -0700 Subject: [PATCH] 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. --- cores/esp8266/pgmspace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/pgmspace.h b/cores/esp8266/pgmspace.h index 3ccc8ef9d1..2b9c3d6b02 100644 --- a/cores/esp8266/pgmspace.h +++ b/cores/esp8266/pgmspace.h @@ -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 *