Skip to content

Commit 6f1ea85

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

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

lib/vc8000nanoe/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ Patch List:
7979
* Add zephyr build system
8080
Impacted files: CMakeLists.txt
8181
README.rst
82+
83+
* Avoid bool redefinition
84+
Impacted files: inc/basetype.h

lib/vc8000nanoe/inc/basetype.h

Lines changed: 2 additions & 8 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

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

107-
108-
#ifndef __cplusplus
109-
typedef enum {
110-
false = 0,
111-
true = 1
112-
} bool;
113-
#endif
114-
115109
#endif
116110

117111
#if defined(VC1SWDEC_16BIT) || defined(MP4ENC_ARM11)

0 commit comments

Comments
 (0)