*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
# 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