Skip to content

Commit d070c1b

Browse files
committed
lib: vc8000nanoe: avoid bool redefinition
Avoid bool redefinition. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent 1459cdf commit d070c1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/vc8000nanoe/inc/basetype.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ typedef enum {
7979

8080
#else /* __symbian__ or __win__ or whatever, customize it to suit well */
8181

82+
#include <stdbool.h>
83+
8284
#ifndef _SIZE_T_DEFINED
8385
typedef uint32_t size_t;
8486

@@ -106,11 +108,13 @@ typedef int64_t i64;
106108

107109

108110
#ifndef __cplusplus
111+
#ifndef __bool_true_false_are_defined
109112
typedef enum {
110113
false = 0,
111114
true = 1
112115
} bool;
113116
#endif
117+
#endif
114118

115119
#endif
116120

0 commit comments

Comments
 (0)