*improved compile compatibility with c++.

This commit is contained in:
Wang Renxin 2015-10-28 20:02:42 +08:00
parent 63f659b4d4
commit 0c332da27a

View File

@ -89,12 +89,14 @@ extern "C" {
# pragma pack(1) # pragma pack(1)
#endif /* MB_COMPACT_MODE */ #endif /* MB_COMPACT_MODE */
#ifndef true #ifndef __cplusplus
# define true (!0) # ifndef true
#endif /* true */ # define true (!0)
#ifndef false # endif /* true */
# define false (0) # ifndef false
#endif /* false */ # define false (0)
# endif /* false */
#endif /* __cplusplus */
#ifndef bool_t #ifndef bool_t
# define bool_t int # define bool_t int