1
/* vi: set sw=4 ts=4: */
3
* This header makes it easier to include kernel headers
4
* which use u32 and such.
6
* Licensed under GPLv2, see file LICENSE in this source tree.
11
/* Try hard to pull in u32 types and such.
12
* Otherwise, #include "fix_u32.h" + #include <linux/foo.h>
13
* may end up typedef'ing bb_hack_u32 inside foo.h,
14
* and repeated typedefs aren't allowed in C/C++.
16
#include <asm/types.h>
17
#include <linux/types.h>
19
/* In case above includes still failed to provide the types,
20
* provide them ourself
33
#define __u64 bb_hack___u64
34
#define u64 bb_hack_u64
35
#define u32 bb_hack_u32
36
#define u16 bb_hack_u16
38
#define __s64 bb_hack___s64
39
#define s64 bb_hack_s64
40
#define s32 bb_hack_s32
41
#define s16 bb_hack_s16
44
typedef uint64_t __u64;
49
typedef int64_t __s64;