Skip to content

Commit 049aaef

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

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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: 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)