fixed PROGMEM declaration for desktop build

This commit is contained in:
Andrew Tridgell 2011-10-08 09:16:52 +11:00
parent 38c033e8dd
commit 28ebca1bf6

View File

@ -77,8 +77,14 @@ typedef struct {
// has an equivalent effect but avoids the warnings, which otherwise
// make finding real issues difficult.
//
#if DESKTOP_BUILD
# undef PROGMEM
# define PROGMEM __attribute__(())
#else
# undef PROGMEM
# define PROGMEM __attribute__(( section(".progmem.data") ))
#endif
# undef PSTR
# define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); \
(prog_char_t *)&__c[0];}))