aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-05-20 23:10:24 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-05-20 23:10:24 +0000
commit2464c810c2910a299fa4b669df04bef6dced8b23 (patch)
tree44a12ac7e3a0326ed196abc2348f2c0b0c2c3192 /sim/erc32
parenta7b75dfda10bf308d3403f344186fc6fbbaa5631 (diff)
downloadgdb-2464c810c2910a299fa4b669df04bef6dced8b23.zip
gdb-2464c810c2910a299fa4b669df04bef6dced8b23.tar.gz
gdb-2464c810c2910a299fa4b669df04bef6dced8b23.tar.bz2
Fix erc32 sim build failure due to missing stdint.h.
* sis.h: Remove #include <stdint.h>. (uint64, int64): Redefine without using stdint.h. (UINT64_MAX): Define.
Diffstat (limited to 'sim/erc32')
-rw-r--r--sim/erc32/ChangeLog6
-rw-r--r--sim/erc32/sis.h7
2 files changed, 10 insertions, 3 deletions
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog
index 1c304c5..cdfcc59 100644
--- a/sim/erc32/ChangeLog
+++ b/sim/erc32/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-20 Joel Brobecker <brobecker@adacore.com>
+
+ * sis.h: Remove #include <stdint.h>.
+ (uint64, int64): Redefine without using stdint.h.
+ (UINT64_MAX): Define.
+
2010-04-20 Tiemen Schut <T.Schut@sron.nl>
* erc32.c (sis_memory_write): Change prototype to const unsigned char *.
diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h
index a3973f3..fcabf9d 100644
--- a/sim/erc32/sis.h
+++ b/sim/erc32/sis.h
@@ -23,7 +23,6 @@
#include "ansidecl.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"
-#include <stdint.h>
#include "end.h"
@@ -53,8 +52,10 @@ typedef float float32; /* 32-bit float */
typedef double float64; /* 64-bit float */
/* FIXME: what about host compilers that don't support 64-bit ints? */
-typedef uint64_t uint64; /* 64-bit unsigned int */
-typedef int64_t int64; /* 64-bit signed int */
+typedef unsigned long long uint64; /* 64-bit unsigned int */
+typedef long long int64; /* 64-bit signed int */
+
+#define UINT64_MAX 18446744073709551615ULL
struct pstate {