Fix complaints with some ChibiOS versions and some compilers about TRUE/FALSE redefinition.
This commit is contained in:
parent
5c8f83ebc4
commit
a5b80da207
1 changed files with 11 additions and 0 deletions
|
@ -10,6 +10,11 @@
|
||||||
|
|
||||||
#if GFX_USE_OS_CHIBIOS
|
#if GFX_USE_OS_CHIBIOS
|
||||||
|
|
||||||
|
// This shouldn't be needed but some people are complaining
|
||||||
|
// about TRUE/FALSE redefinition so we fix it here.
|
||||||
|
#undef TRUE
|
||||||
|
#undef FALSE
|
||||||
|
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
|
@ -28,6 +33,12 @@
|
||||||
* are already defined by ChibiOS
|
* are already defined by ChibiOS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(FALSE)
|
||||||
|
#define FALSE 0
|
||||||
|
#endif
|
||||||
|
#if !defined(TRUE)
|
||||||
|
#define TRUE -1
|
||||||
|
#endif
|
||||||
#if CH_KERNEL_MAJOR == 3
|
#if CH_KERNEL_MAJOR == 3
|
||||||
typedef char bool_t;
|
typedef char bool_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue