Don't re-define TRUE and FALSE if already defined
This commit is contained in:
parent
151045ed56
commit
c220255604
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue