Fix bug 297832. Patch by David H. Gutteridge <dhgutteridge@hotmail.com>, r+sr=jst

git-svn-id: svn://10.0.0.236/trunk@181809 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-10-08 03:02:20 +00:00
parent c861aec6a9
commit 6ef51f82b9

View File

@@ -93,13 +93,15 @@
*/
#include <stdint.h>
#if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 95)
#include <stdbool.h>
#else
/*
* GCC 2.91 can't deal with a typedef for bool, but a #define
* works.
*/
#define bool int
#ifndef __cplusplus
#if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 95)
#include <stdbool.h>
#else
/*
* GCC 2.91 can't deal with a typedef for bool, but a #define
* works.
*/
#define bool int
#endif
#endif
#endif