зеркало из 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)
|
||||
* OpenBSD ships no header that defines uint32_t, but provides bool as a
|
||||
* macro.
|
||||
* OpenBSD ships no header that defines uint32_t and using its bool macro is
|
||||
* unsafe.
|
||||
*/
|
||||
#if defined(bsdi) || defined(OPENBSD)
|
||||
typedef u_int32_t uint32_t;
|
||||
|
||||
#if defined(bsdi)
|
||||
#if !defined(__cplusplus)
|
||||
typedef int bool;
|
||||
#endif
|
||||
#else /* OPENBSD is defined, so use its bool */
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* FreeBSD defines uint32_t and bool.
|
||||
|
|
Загрузка…
Ссылка в новой задаче