e515b81a59
Fixes PR 30014.
20 lines
490 B
Text
20 lines
490 B
Text
$NetBSD: patch-aa,v 1.1 2005/05/31 19:01:40 rillig Exp $
|
|
|
|
Some systems don't have <stdbool.h>.
|
|
|
|
--- src/Headers/basic.h.orig Mon Apr 21 00:45:26 2003
|
|
+++ src/Headers/basic.h Tue May 31 20:45:34 2005
|
|
@@ -22,8 +22,11 @@
|
|
# include <stdlib.h>
|
|
# include <stdio.h>
|
|
|
|
-# ifndef WIN32
|
|
-/* Microsoft VC++ still doesn't support ISO C99... */
|
|
+# if defined(WIN32) || (defined(__GNUC__) && (__GNUC__ == 2))
|
|
+#define bool int
|
|
+#define false 0
|
|
+#define true 1
|
|
+# else
|
|
# include <stdbool.h>
|
|
# endif
|
|
|