use ifdef for DESKTOP_BUILD

This commit is contained in:
Andrew Tridgell 2011-10-09 22:03:42 +11:00
parent 95475c6221
commit ab755ab11f
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ typedef struct {
// has an equivalent effect but avoids the warnings, which otherwise // has an equivalent effect but avoids the warnings, which otherwise
// make finding real issues difficult. // make finding real issues difficult.
// //
#if DESKTOP_BUILD #ifdef DESKTOP_BUILD
# undef PROGMEM # undef PROGMEM
# define PROGMEM __attribute__(()) # define PROGMEM __attribute__(())
#else #else

View File

@ -54,7 +54,7 @@ extern "C" {
#undef PSTR #undef PSTR
#define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];})) #define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];}))
#if DESKTOP_BUILD #ifdef DESKTOP_BUILD
#define GETBYTE(flag, mask, pnt) ({ \ #define GETBYTE(flag, mask, pnt) ({ \
unsigned char __c; \ unsigned char __c; \
__c = ((flag) & (mask)) \ __c = ((flag) & (mask)) \