[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [patch] fix compilation on Alpha
From: |
Falk Hueffner |
Subject: |
[Qemu-devel] [patch] fix compilation on Alpha |
Date: |
16 Feb 2004 23:33:15 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (cabbage) |
Hi,
the declaration of uint64_t conflicts with the one from the standard
headers (uint64_t is unsigned long, not unsigned long long). I suggest
this patch:
Index: dyngen-exec.h
===================================================================
RCS file: /cvsroot/qemu/qemu/dyngen-exec.h,v
retrieving revision 1.8
diff -u -p -r1.8 dyngen-exec.h
--- dyngen-exec.h 4 Jan 2004 17:44:08 -0000 1.8
+++ dyngen-exec.h 16 Feb 2004 22:26:34 -0000
@@ -21,29 +21,7 @@
#define __DYNGEN_EXEC_H__
#include <stddef.h>
-
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned int uint32_t;
-typedef unsigned long long uint64_t;
-
-typedef signed char int8_t;
-typedef signed short int16_t;
-typedef signed int int32_t;
-typedef signed long long int64_t;
-
-#define INT8_MIN (-128)
-#define INT16_MIN (-32767-1)
-#define INT32_MIN (-2147483647-1)
-#define INT64_MIN (-(int64_t)(9223372036854775807)-1)
-#define INT8_MAX (127)
-#define INT16_MAX (32767)
-#define INT32_MAX (2147483647)
-#define INT64_MAX ((int64_t)(9223372036854775807))
-#define UINT8_MAX (255)
-#define UINT16_MAX (65535)
-#define UINT32_MAX (4294967295U)
-#define UINT64_MAX ((uint64_t)(18446744073709551615))
+#include <stdint.h>
#define bswap32(x) \
({ \
--
Falk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [patch] fix compilation on Alpha,
Falk Hueffner <=