summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2010-08-29 12:09:23 +0200
committerJoel Rosdahl <joel@rosdahl.net>2010-08-29 12:09:23 +0200
commit41113e3087aabc68bf4379d5c101da351a5c7e67 (patch)
treebfe704decfed492aefb22d0b1feff348fae0d300 /system.h
parent1b298bb748ebb5575f30a2d113f9c1f82936e918 (diff)
downloadccache-41113e3087aabc68bf4379d5c101da351a5c7e67.tar.gz
Add autoconf check and workaround for stdbool.h
Diffstat (limited to 'system.h')
-rw-r--r--system.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/system.h b/system.h
index bf46c466..e9b0abf2 100644
--- a/system.h
+++ b/system.h
@@ -46,4 +46,20 @@
#include <time.h>
#include <utime.h>
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+# ifdef __cplusplus
+typedef bool _Bool;
+# else
+# define _Bool signed char
+# endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+
#endif /* CCACHE_SYSTEM_H */