Don't re-define TRUE and FALSE if already defined

This commit is contained in:
Andreas Karlsson 2019-05-24 13:55:15 +02:00
parent 151045ed56
commit c220255604
1 changed files with 5 additions and 1 deletions

View File

@ -15,9 +15,13 @@ extern "C"
#include <stdint.h>
/* General types */
typedef uint8_t boolean;
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
typedef uint8_t boolean;
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;