Re: predefined platform C macro

2020-02-10 Thread Gregory Nutt
i'm looking for something like __Darwin__, __Linux__, etc for nuttx so that i can have something like the following in my app. #ifdef __NuttX__ #include #endif i found some Make.defs defining -D__NuttX__. is it commonly used? In general, those definitions come from the compiler, not from t

predefined platform C macro

2020-02-10 Thread Takashi Yamamoto
hi, i'm looking for something like __Darwin__, __Linux__, etc for nuttx so that i can have something like the following in my app. #ifdef __NuttX__ #include #endif i found some Make.defs defining -D__NuttX__. is it commonly used?