From 868d830e59d67c39f23d4e9379dd49484cd8d4b9 Mon Sep 17 00:00:00 2001 From: "jst%mozilla.jstenback.com" Date: Mon, 12 Jul 2004 19:35:47 +0000 Subject: [PATCH] One more attempt at fixing the build bustage. git-svn-id: svn://10.0.0.236/trunk@159095 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/public/nptypes.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mozilla/modules/plugin/base/public/nptypes.h b/mozilla/modules/plugin/base/public/nptypes.h index 228242091f8..98bac41ffc4 100644 --- a/mozilla/modules/plugin/base/public/nptypes.h +++ b/mozilla/modules/plugin/base/public/nptypes.h @@ -47,11 +47,18 @@ typedef unsigned int uint32_t; #else #include -#if !defined(__GNUC__) || (__GNUC__ > 2 && __GNUC_MINOR__ > 91) +#if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 91) + #ifndef __cplusplus + #ifndef bool typedef int bool; #endif /* bool */ + #endif /* __cplusplus */ -#endif /* !defined(__GNUC__) || (__GNUC__ > 2 && __GNUC_MINOR__ > 96) */ + +#else +#define bool int +#endif + #endif