From 4b5f402e2df8d06d7474cf861ed525cff8749748 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 14 Jan 2003 10:50:48 +0100 Subject: [PATCH] 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 --- libffi/ChangeLog | 5 +++++ libffi/src/ffitest.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 944206fe1cb..97705f1bfdd 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +2003-01-14 Andreas Jaeger + + * src/ffitest.c (main): Only use ffi_closures if those are + supported. + 2003-01-13 Andreas Tobler * libffi/src/ffitest.c diff --git a/libffi/src/ffitest.c b/libffi/src/ffitest.c index 94643d9ec71..a05b746865d 100644 --- a/libffi/src/ffitest.c +++ b/libffi/src/ffitest.c @@ -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; -- 2.30.2