From: Felix Morgner Date: Thu, 17 Apr 2014 06:10:18 +0000 (+0200) Subject: Use c99 standard bool when available X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=commitdiff_plain;h=7470834ac6613c2e22626f9511384f025f16768e Use c99 standard bool when available --- diff --git a/src/types.h b/src/types.h index cd45146..91d0afa 100644 --- a/src/types.h +++ b/src/types.h @@ -1,10 +1,19 @@ #ifndef TYPES_H_90878954 #define TYPES_H_90878954 +#if __STDC_VERSION__ == 199901L + +#include +typedef bool bool_t; + +#else // __STDC_VERSION__ + typedef enum { false, true } bool_t; +#endif // __STDC_VERSION + #endif