a3ed5ff1e90cb929c053afdb19f0f21df726ed97
[ocaml-bitstring.git] / bitmatch-import-prefix.h
1 /* This file is automagically prefixed to all .ubd files
2  * and provides some macros that we need for CIL.
3  */
4
5 /* This is needed for older versions of CIL which didn't
6  * support this C99 type.
7  */
8 #ifndef _Bool
9 #define _Bool unsigned
10 #endif
11
12 #define BITMATCH_IMPORT(name) __bitmatch_import_##name
13 #define BITMATCH_CONSTANT_STRING(name,val) \
14   char *__bitmatch_constant_##name = val
15 #define BITMATCH_CONSTANT_INT32(name,val) \
16   int __bitmatch_constant_##name = val