diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-18 13:22:19 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-20 14:00:42 +1030 |
commit | 61d0b5a4b2777dcf5daef245e212b3c1fa8091ca (patch) | |
tree | 647f8fd729d5400341e5701d0d1eb668aad97f89 /tools/virtio/linux/types.h | |
parent | a9a0fef779074838230e04a322fd2bdc921f4f4f (diff) |
tools/virtio: separate headers more.
This makes them a bit more like the kernel headers, so we can include more
real kernel headers in our tests.
In addition this means that we don't break tools/virtio with the next
patch.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/virtio/linux/types.h')
-rw-r--r-- | tools/virtio/linux/types.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/virtio/linux/types.h b/tools/virtio/linux/types.h new file mode 100644 index 00000000000..f8ebb9a2b3d --- /dev/null +++ b/tools/virtio/linux/types.h @@ -0,0 +1,28 @@ +#ifndef TYPES_H +#define TYPES_H +#include <stdint.h> + +#define __force +#define __user +#define __must_check +#define __cold + +typedef uint64_t u64; +typedef int64_t s64; +typedef uint32_t u32; +typedef int32_t s32; +typedef uint16_t u16; +typedef int16_t s16; +typedef uint8_t u8; +typedef int8_t s8; + +typedef uint64_t __u64; +typedef int64_t __s64; +typedef uint32_t __u32; +typedef int32_t __s32; +typedef uint16_t __u16; +typedef int16_t __s16; +typedef uint8_t __u8; +typedef int8_t __s8; + +#endif /* TYPES_H */ |