aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/types.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-15 09:09:48 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-15 09:09:48 +0100
commit0df54d980737b7c4bb07aa4ac29e1e7689a6019b (patch)
tree69c7a044efe1f909f03ad9ff32ef5a8e0d8a390f /extras/mini-os/include/types.h
parent4a493bdc5c1f3ba22004fd6a260fc7b4c6d23fce (diff)
downloadxen-0df54d980737b7c4bb07aa4ac29e1e7689a6019b.tar.gz
xen-0df54d980737b7c4bb07aa4ac29e1e7689a6019b.tar.bz2
xen-0df54d980737b7c4bb07aa4ac29e1e7689a6019b.zip
minios: switch to C99 integer types
This is a necessary step to make minios build on NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'extras/mini-os/include/types.h')
-rw-r--r--extras/mini-os/include/types.h39
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;