fix compilation on Alpha
PATCH 1/1 fix compilation on Alpha
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
dyngen-exec.h +1 -23
@@ -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) \ ({ \
Signature · 1 line
Falk