use ifdef for DESKTOP_BUILD

This commit is contained in:
Andrew Tridgell 2011-10-09 22:03:42 +11:00
parent 034755e432
commit 41dd8d60ba
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
// make finding real issues difficult.
//
#if DESKTOP_BUILD
#ifdef DESKTOP_BUILD
# undef PROGMEM
# define PROGMEM __attribute__(())
#else

View File

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