[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] mkelf32 explicit-size types are based on defs in inttypes.h.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 61df3453426c50714b7d8c3438cc564d0fdc8863
# Parent  5aaebfc580a64555d621eed2fdecda730df873f1

mkelf32 explicit-size types are based on defs in inttypes.h.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 5aaebfc580a6 -r 61df3453426c xen/arch/x86/boot/mkelf32.c
--- a/xen/arch/x86/boot/mkelf32.c       Fri Jul  1 10:55:46 2005
+++ b/xen/arch/x86/boot/mkelf32.c       Fri Jul  1 12:30:19 2005
@@ -15,33 +15,16 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
-
-/*
- * Here I'm taking care not to conflict with possible typedef's in
- * standard headers by instead using the macro namespace.
- */
-#undef u8
-#undef u16
-#undef u32
-#undef u64
-#undef s8
-#undef s16
-#undef s32
-#undef s64
-#define u8  unsigned char
-#define u16 unsigned short
-#define u32 unsigned int
-#define s8  signed char
-#define s16 signed short
-#define s32 signed int
-#if defined(__i386__)
-#define u64 unsigned long long
-#define s64 signed long long
-#else
-#define u64 unsigned long
-#define s64 signed long
-#endif
-
+#include <inttypes.h>
+
+#define u8  uint8_t
+#define u16 uint16_t
+#define u32 uint32_t
+#define u64 uint64_t
+#define s8  int8_t
+#define s16 int16_t
+#define s32 int32_t
+#define s64 int64_t
 #include "../../../include/xen/elf.h"
 
 #define DYNAMICALLY_FILLED   0

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.