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:
parent
11c422529e
commit
efcaa8fdac
2 changed files with 0 additions and 11 deletions
|
|
@ -18,12 +18,6 @@
|
||||||
#include "preprocessor.h"
|
#include "preprocessor.h"
|
||||||
#include "swigwarn.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 NOT_VIRTUAL 0
|
||||||
#define PLAIN_VIRTUAL 1
|
#define PLAIN_VIRTUAL 1
|
||||||
#define PURE_VIRTUAL 2
|
#define PURE_VIRTUAL 2
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,6 @@ AC_DEFINE_UNQUOTED(SWIG_PLATFORM, ["$host"], [Platform that SWIG is built for])
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
||||||
dnl Checks for types.
|
|
||||||
AC_LANG_PUSH([C++])
|
|
||||||
AC_CHECK_TYPES([bool])
|
|
||||||
AC_LANG_POP([C++])
|
|
||||||
|
|
||||||
dnl Look for popen
|
dnl Look for popen
|
||||||
AC_ARG_WITH(popen, AS_HELP_STRING([--without-popen], [Disable popen]), with_popen="$withval")
|
AC_ARG_WITH(popen, AS_HELP_STRING([--without-popen], [Disable popen]), with_popen="$withval")
|
||||||
if test x"${with_popen}" = xno ; then
|
if test x"${with_popen}" = xno ; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue