From 5e02fb2da71671836766fcda19fe7e98549732f5 Mon Sep 17 00:00:00 2001 From: James Duley Date: Fri, 20 May 2016 21:26:39 +0100 Subject: [PATCH] simposix don't #define false in c++ --- flight/pios/inc/pios_posix.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flight/pios/inc/pios_posix.h b/flight/pios/inc/pios_posix.h index aaf3cdc95..466082cfe 100644 --- a/flight/pios/inc/pios_posix.h +++ b/flight/pios/inc/pios_posix.h @@ -29,14 +29,16 @@ #include #ifndef __cplusplus + typedef enum { FALSE = 0, TRUE = !FALSE } bool; -#endif #ifndef false #define false FALSE #define true TRUE #endif +#endif + // #define FILEINFO FILE* // #define PIOS_SERVO_NUM_OUTPUTS 8