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>
|
#include <stdint.h>
|
||||||
|
|
||||||
/* General types */
|
/* General types */
|
||||||
typedef uint8_t boolean;
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
|
#endif
|
||||||
|
#ifndef FALSE
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
#endif
|
||||||
|
typedef uint8_t boolean;
|
||||||
typedef int8_t int8;
|
typedef int8_t int8;
|
||||||
typedef int16_t int16;
|
typedef int16_t int16;
|
||||||
typedef int32_t int32;
|
typedef int32_t int32;
|
||||||
|
|
Loading…
Reference in New Issue