*improved compile compatibility with c++.
This commit is contained in:
parent
63f659b4d4
commit
0c332da27a
@ -89,12 +89,14 @@ extern "C" {
|
|||||||
# pragma pack(1)
|
# pragma pack(1)
|
||||||
#endif /* MB_COMPACT_MODE */
|
#endif /* MB_COMPACT_MODE */
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
# ifndef true
|
# ifndef true
|
||||||
# define true (!0)
|
# define true (!0)
|
||||||
# endif /* true */
|
# endif /* true */
|
||||||
# ifndef false
|
# ifndef false
|
||||||
# define false (0)
|
# define false (0)
|
||||||
# endif /* false */
|
# endif /* false */
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#ifndef bool_t
|
#ifndef bool_t
|
||||||
# define bool_t int
|
# define bool_t int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user