projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ffadd
)
Use c99 standard bool when available
author
Felix Morgner
<felix.morgner@gmail.com>
Thu, 17 Apr 2014 06:10:18 +0000
(08:10 +0200)
committer
Felix Morgner
<felix.morgner@gmail.com>
Thu, 17 Apr 2014 06:10:18 +0000
(08:10 +0200)
src/types.h
patch
|
blob
|
history
diff --git
a/src/types.h
b/src/types.h
index cd451460425b9adc762bae51446971a5ddd6d7b2..91d0afa0d65f2aabf327813583b2d7a353528c65 100644
(file)
--- 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 <stdbool.h>
+typedef bool bool_t;
+
+#else // __STDC_VERSION__
+
typedef enum {
false,
true
} bool_t;
+#endif // __STDC_VERSION
+
#endif