summaryrefslogtreecommitdiff
path: root/linux/dev
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-23 16:35:14 +0530
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-23 16:35:14 +0530
commit9c6db49cc8bb097b4bf2c6a6ad331bcb58f0eca7 (patch)
tree4eac6f5cd4a512f098e00d52120ccf62cbeb0094 /linux/dev
parent2ca216d03ead0249bf9e33cbea2c0328637943ad (diff)
Add stdint integer types in Linux glue
* linux/dev/include/linux/types.h (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t): New types.
Diffstat (limited to 'linux/dev')
-rw-r--r--linux/dev/include/linux/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/dev/include/linux/types.h b/linux/dev/include/linux/types.h
index 57bb25f..b697d9e 100644
--- a/linux/dev/include/linux/types.h
+++ b/linux/dev/include/linux/types.h
@@ -109,6 +109,15 @@ struct ustat {
char f_fpack[6];
};
+/* stdint.h */
+typedef s8 int8_t;
+typedef u8 uint8_t;
+typedef s16 int16_t;
+typedef u16 uint16_t;
+typedef s32 int32_t;
+typedef u32 uint32_t;
+typedef s64 int64_t;
+typedef u64 uint64_t;
/* Yes, this is ugly. But that's why it is called glue code. */