From 3fd2fa5dcc24ea18d3ecb9c857b2133bd3c0f21a Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 19 Feb 2004 21:44:44 +0000 Subject: [PATCH] bool patch fix. Needed for NextStep. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5726 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/swigmod.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SWIG/Source/Modules/swigmod.h b/SWIG/Source/Modules/swigmod.h index 3b3c08b05..274264432 100644 --- a/SWIG/Source/Modules/swigmod.h +++ b/SWIG/Source/Modules/swigmod.h @@ -25,6 +25,12 @@ #include "preprocessor.h" #include "swigwarn.h" +#if !defined(HAVE_BOOL) +typedef int bool; +#define true ((bool)1) +#define false ((bool)0) +#endif + #define NOT_VIRTUAL 0 #define PLAIN_VIRTUAL 1 #define PURE_VIRTUAL 2