diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2010-08-29 12:09:23 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2010-08-29 12:09:23 +0200 |
commit | 41113e3087aabc68bf4379d5c101da351a5c7e67 (patch) | |
tree | bfe704decfed492aefb22d0b1feff348fae0d300 /system.h | |
parent | 1b298bb748ebb5575f30a2d113f9c1f82936e918 (diff) | |
download | ccache-41113e3087aabc68bf4379d5c101da351a5c7e67.tar.gz |
Add autoconf check and workaround for stdbool.h
Diffstat (limited to 'system.h')
-rw-r--r-- | system.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 */ |