X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Ftypes.h;h=91d0afa0d65f2aabf327813583b2d7a353528c65;hb=7470834ac6613c2e22626f9511384f025f16768e;hp=cd451460425b9adc762bae51446971a5ddd6d7b2;hpb=a7ffadd41a1457e24ffde19a081c4b8bffe1b3b8;p=umurmur.git 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