Commit 02c521f4 by Jeff Sturm Committed by Jeff Sturm

ffi.h.in: Add typedef for ffi_arg.

        * include/ffi.h.in: Add typedef for ffi_arg.
        * src/ffitest.c (main): Declare rint with ffi_arg.

From-SVN: r50006
parent a47ed310
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
......
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment