BSD/OS's sys/types.h defines int32_t and u_int32_t, but not uint32_t. Geez.
git-svn-id: svn://10.0.0.236/trunk@159156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -60,11 +60,13 @@
|
||||
#endif
|
||||
#elif defined(bsdi)
|
||||
/*
|
||||
* BSD/OS ships sys/types.h that define [u]int32_t, but no header
|
||||
* that defines bool for C
|
||||
* BSD/OS ships sys/types.h that define int32_t and u_int32_t, but
|
||||
* no header that defines uint32_t, nor bool (for C)
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef u_int32_t uint32_t;
|
||||
|
||||
#if !defined(__cplusplus)
|
||||
typedef int bool;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user