Drop code to handle compilers lacking the 'bool' type.

SWIG requires an ISO C++ compiler, so this is no longer useful.  Fixes
issue#513.
This commit is contained in:
Olly Betts 2015-09-02 09:40:55 +12:00
commit efcaa8fdac
2 changed files with 0 additions and 11 deletions

View file

@ -18,12 +18,6 @@
#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

View file

@ -40,11 +40,6 @@ AC_DEFINE_UNQUOTED(SWIG_PLATFORM, ["$host"], [Platform that SWIG is built for])
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for types.
AC_LANG_PUSH([C++])
AC_CHECK_TYPES([bool])
AC_LANG_POP([C++])
dnl Look for popen
AC_ARG_WITH(popen, AS_HELP_STRING([--without-popen], [Disable popen]), with_popen="$withval")
if test x"${with_popen}" = xno ; then