Fix erc32 sim build failure due to missing stdint.h.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 20 May 2010 23:10:24 +0000 (23:10 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 20 May 2010 23:10:24 +0000 (23:10 +0000)
        * sis.h: Remove #include <stdint.h>.
        (uint64, int64): Redefine without using stdint.h.
        (UINT64_MAX): Define.

sim/erc32/ChangeLog
sim/erc32/sis.h

index 1c304c50b63dbe23dafc6217a39054576e5ca9a3..cdfcc59a92cde610a3085192b8440f009991d52d 100644 (file)
@@ -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 *.
index a3973f31444d649f8c6766b27f7810f5aea81454..fcabf9dc111a9bab64637f1e9f2d0f30b5cb81e4 100644 (file)
@@ -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 {
 
This page took 0.039587 seconds and 4 git commands to generate.