mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
use ifdef for DESKTOP_BUILD
This commit is contained in:
parent
034755e432
commit
41dd8d60ba
@ -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
|
||||
|
@ -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)) \
|
||||
|
Loading…
Reference in New Issue
Block a user