aboutsummaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2002-02-24 17:31:45 +0000
committerJeff Sturm <jsturm@one-point.com>2002-02-24 17:31:45 +0000
commit94d79034920e54ae5abec06763a02c91c7ce43d9 (patch)
treeaf547f75a87906c75b962c106f70ef3c47f25cc1 /libffi
parentcd2f9d31666d8c0e9848da8d24138fc50711ac29 (diff)
* include/ffi.h.in: Add typedef for ffi_arg.
* src/ffitest.c (main): Declare rint with ffi_arg. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@50006 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog5
-rw-r--r--libffi/include/ffi.h.in10
-rw-r--r--libffi/src/ffitest.c6
3 files changed, 16 insertions, 5 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index f98ef9f9924..ad33876a7dc 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-24 Jeff Sturm <jsturm@one-point.com>
+
+ * include/ffi.h.in: Add typedef for ffi_arg.
+ * src/ffitest.c (main): Declare rint with ffi_arg.
+
2002-02-21 Andreas Tobler <toa@pop.agri.ch>
* src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in
index bcb999abe03..90ed2692305 100644
--- a/libffi/include/ffi.h.in
+++ b/libffi/include/ffi.h.in
@@ -307,6 +307,16 @@ typedef struct {
} ffi_cif;
+#if SIZEOF_ARG == 4
+typedef UINT32 ffi_arg;
+#else
+#if SIZEOF_ARG == 8
+typedef UINT64 ffi_arg;
+#else
+-- unsupported configuration
+#endif
+#endif
+
/* ---- Definitions for the raw API -------------------------------------- */
#if !FFI_NO_RAW_API
diff --git a/libffi/src/ffitest.c b/libffi/src/ffitest.c
index a03f045b2fb..ba47ba408d1 100644
--- a/libffi/src/ffitest.c
+++ b/libffi/src/ffitest.c
@@ -222,11 +222,7 @@ int main(/*@unused@*/ int argc, /*@unused@*/ char *argv[])
signed int si1;
signed int si2;
-#if defined(ALPHA) || defined(IA64) || defined(SPARC64) || (defined(MIPS) && (_MIPS_SIM == _ABIN32))
- long long rint;
-#else
- int rint;
-#endif
+ ffi_arg rint;
long long rlonglong;
ffi_type ts1_type;