Use c99 standard bool when available
[umurmur.git] / src / types.h
index cd451460425b9adc762bae51446971a5ddd6d7b2..91d0afa0d65f2aabf327813583b2d7a353528c65 100644 (file)
@@ -1,10 +1,19 @@
 #ifndef TYPES_H_90878954
 #define TYPES_H_90878954
 
+#if __STDC_VERSION__ == 199901L
+
+#include <stdbool.h>
+typedef bool bool_t;
+
+#else // __STDC_VERSION__
+
 typedef enum {
        false,
        true
 } bool_t;
 
+#endif // __STDC_VERSION
+
 #endif