зеркало из https://github.com/mozilla/pjs.git
Bug 259325 build error on OpenBSD
p=ajschult@verizon.net r=benjamin sr=jst a=asa
This commit is contained in:
Родитель
7171ee6d52
Коммит
052195e7d9
|
@ -67,19 +67,15 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BSD/OS ships no header that defines uint32_t, nor bool (for C)
|
* BSD/OS ships no header that defines uint32_t, nor bool (for C)
|
||||||
* OpenBSD ships no header that defines uint32_t, but provides bool as a
|
* OpenBSD ships no header that defines uint32_t and using its bool macro is
|
||||||
* macro.
|
* unsafe.
|
||||||
*/
|
*/
|
||||||
#if defined(bsdi) || defined(OPENBSD)
|
#if defined(bsdi) || defined(OPENBSD)
|
||||||
typedef u_int32_t uint32_t;
|
typedef u_int32_t uint32_t;
|
||||||
|
|
||||||
#if defined(bsdi)
|
|
||||||
#if !defined(__cplusplus)
|
#if !defined(__cplusplus)
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
#endif
|
#endif
|
||||||
#else /* OPENBSD is defined, so use its bool */
|
|
||||||
#include <stdbool.h>
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* FreeBSD defines uint32_t and bool.
|
* FreeBSD defines uint32_t and bool.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче