Replacement for stdbool.h
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 30 Jul 2003 16:00:59 +0000 (16:00 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 30 Jul 2003 16:00:59 +0000 (16:00 +0000)
system.h

index 73f7aeb1cd558ce3c35f94fb8c41f7a3e0e18657..0d7b3187d62931634a437ff1b0ed34a30f01b811 100644 (file)
--- a/system.h
+++ b/system.h
@@ -27,7 +27,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <stdbool.h>
 #include <stdarg.h>
 #include <string.h>
 #include <ctype.h>
 #include <fcntl.h>
 #include <unistd.h>
 
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+typedef int bool;
+#define true 1
+#define false 0
+#endif
+
 #ifdef HAVE_TERMIOS_H
 #include <termios.h>
 #endif