qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] fix compilation on Alpha
@ 2004-02-16 22:33 Falk Hueffner
  0 siblings, 0 replies; only message in thread
From: Falk Hueffner @ 2004-02-16 22:33 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-16 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-16 22:33 [Qemu-devel] [patch] fix compilation on Alpha Falk Hueffner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).