diff options
Diffstat (limited to 'extras/mini-os/include/types.h')
-rw-r--r-- | extras/mini-os/include/types.h | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/extras/mini-os/include/types.h b/extras/mini-os/include/types.h index 19b730280d..456e21ac06 100644 --- a/extras/mini-os/include/types.h +++ b/extras/mini-os/include/types.h @@ -21,20 +21,6 @@ #define _TYPES_H_ #include <stddef.h> -typedef signed char s8; -typedef unsigned char u8; -typedef signed short s16; -typedef unsigned short u16; -typedef signed int s32; -typedef unsigned int u32; -#ifdef __i386__ -typedef signed long long s64; -typedef unsigned long long u64; -#elif defined(__x86_64__) || defined(__ia64__) -typedef signed long s64; -typedef unsigned long u64; -#endif - /* FreeBSD compat types */ #ifndef HAVE_LIBC typedef unsigned char u_char; @@ -72,15 +58,22 @@ typedef int intptr_t; typedef unsigned long uintptr_t; typedef long intptr_t; #endif /* __i386__ || __x86_64__ */ -typedef u8 uint8_t; -typedef s8 int8_t; -typedef u16 uint16_t; -typedef s16 int16_t; -typedef u32 uint32_t; -typedef s32 int32_t; -typedef u64 uint64_t, uintmax_t; -typedef s64 int64_t, intmax_t; -typedef u64 off_t; +typedef unsigned char uint8_t; +typedef signed char int8_t; +typedef unsigned short uint16_t; +typedef signed short int16_t; +typedef unsigned int uint32_t; +typedef signed int int32_t; +#ifdef __i386__ +typedef signed long long int64_t; +typedef unsigned long long uint64_t; +#elif defined(__x86_64__) || defined(__ia64__) +typedef signed long int64_t; +typedef unsigned long uint64_t; +#endif +typedef uint64_t uintmax_t; +typedef int64_t intmax_t; +typedef uint64_t off_t; #endif typedef intptr_t ptrdiff_t; |