summaryrefslogtreecommitdiff
path: root/devel/splint/patches/patch-aa
blob: 1d55ef1758d61c5d6813ef4f030aa2e7fa8bcc45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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