(bool, false, true): Use a definition consistent with ../lib/hash.c.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Oct 2002 04:40:09 +0000 (04:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Oct 2002 04:40:09 +0000 (04:40 +0000)
src/system.h

index 002fa81..69f385c 100644 (file)
@@ -181,11 +181,11 @@ void *memrchr (const void *s, int c, size_t n);
 | Booleans.  |
 `-----------*/
 
-#ifndef TRUE
-# define TRUE  (1)
-# define FALSE (0)
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+typedef enum {false = 0, true = 1} bool;
 #endif
-typedef int bool;
 
 
 /*-----------.