ffitest.c (main): Only use ffi_closures if those are supported.

* src/ffitest.c (main): Only use ffi_closures if those are
	supported.

From-SVN: r61273
This commit is contained in:
Andreas Jaeger 2003-01-14 10:50:48 +01:00 committed by Andreas Jaeger
parent 17fb1987d6
commit 4b5f402e2d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-01-14 Andreas Jaeger <aj@suse.de>
* src/ffitest.c (main): Only use ffi_closures if those are
supported.
2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
* libffi/src/ffitest.c

View File

@ -426,10 +426,12 @@ int main(/*@unused@*/ int argc, /*@unused@*/ char *argv[])
ffi_arg rint;
long long rlonglong;
# if FFI_CLOSURES
/* The closure must not be an automatic variable on
platforms (Solaris) that forbid stack execution by default. */
static ffi_closure cl;
#endif
ffi_type * cl_arg_types[17];
ffi_type ts1_type;