mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 251300 stdint.h missing in FreeBSD
patch by jon@rekai.net r=jst sr=jst
This commit is contained in:
parent
7cf90f0f0b
commit
f90582ccb0
@ -58,18 +58,28 @@
|
||||
#ifndef __cplusplus
|
||||
typedef int bool;
|
||||
#endif
|
||||
#elif defined(bsdi)
|
||||
#elif defined(bsdi) || defined(FREEBSD)
|
||||
/*
|
||||
* 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)
|
||||
* BSD/OS and FreeBSD ship sys/types.h that define int32_t and u_int32_t.
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
|
||||
/*
|
||||
* BSD/OS ships no header that defines uint32_t, nor bool (for C)
|
||||
*/
|
||||
#if defined(bsdi)
|
||||
typedef u_int32_t uint32_t;
|
||||
|
||||
#if !defined(__cplusplus)
|
||||
typedef int bool;
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* FreeBSD defines uint32_t and bool.
|
||||
*/
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* For those that ship a standard C99 stdint.h header file, include
|
||||
|
Loading…
Reference in New Issue
Block a user