Removed 'bool' datatype. Not portable. Please don't use.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
93fcabc087
commit
a1ef09aa22
1 changed files with 9 additions and 0 deletions
|
|
@ -28,12 +28,21 @@ extern "C" {
|
||||||
#include "swigconfig.h"
|
#include "swigconfig.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
**** THIS PATCH IS REJECTED. DO NOT USE 'bool' DATATYPE IN THE SWIG IMPLEMENTATION.
|
||||||
|
**** NOT PORTABLE. -- Dave
|
||||||
|
|
||||||
#if defined(__cplusplus) && !defined(HAVE_BOOL)
|
#if defined(__cplusplus) && !defined(HAVE_BOOL)
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
#define true ((bool)1)
|
#define true ((bool)1)
|
||||||
#define false ((bool)0)
|
#define false ((bool)0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
**********************
|
||||||
|
*/
|
||||||
|
|
||||||
#include "doh.h"
|
#include "doh.h"
|
||||||
|
|
||||||
/* Status codes */
|
/* Status codes */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue