Skip to content

Commit 9d0c2e7

Browse files
committed
lib: vc8000nanoe: avoid bool redefinition
Avoid bool redefinition. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent 2b8f4a2 commit 9d0c2e7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/vc8000nanoe/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ License Link:
7575
opensource.org/licenses/BSD-3-Clause
7676

7777
Patch List:
78+
* Avoid bool redefinition
79+
Impacted files: inc/basetype.h

lib/vc8000nanoe/inc/basetype.h

Lines changed: 4 additions & 1 deletion
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

@@ -104,13 +106,14 @@ typedef int32_t i32;
104106
typedef uint64_t u64;
105107
typedef int64_t i64;
106108

107-
109+
#if 0 /** PATCH: avoid bool redefinition */
108110
#ifndef __cplusplus
109111
typedef enum {
110112
false = 0,
111113
true = 1
112114
} bool;
113115
#endif
116+
#endif /* ENDOF PATCH */
114117

115118
#endif
116119

0 commit comments

Comments
 (0)