2004-04-20 Theodore A. Roth [Contributed by Ren Liebscher ] * include/avr/pgmspace.h: Fix to allow PSTR to work with C++. Index: include/avr/pgmspace.h =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/include/avr/pgmspace.h,v retrieving revision 1.19 diff -u -p -p -r1.19 pgmspace.h --- include/avr/pgmspace.h 16 Apr 2004 17:17:47 -0000 1.19 +++ include/avr/pgmspace.h 20 Apr 2004 20:08:48 -0000 @@ -107,7 +107,7 @@ typedef uint64_t prog_uint64_t PROGMEM; Used to declare a static pointer to a string in program space. */ -#define PSTR(s) ({static char __c[] PROGMEM = (s); __c;}) +#define PSTR(s) ({static char __c[] PROGMEM = (s); &(*__c);}) #define __LPM_classic__(addr) \ ({ \