зеркало из https://github.com/mozilla/pjs.git
BSD/OS's sys/types.h defines int32_t and u_int32_t, but not uint32_t. Geez.
This commit is contained in:
Родитель
d416a170e5
Коммит
1887ee1407
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче