summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReini Urban <rurban@cpan.org>2017-06-18 18:26:05 +0200
committerReini Urban <rurban@cpan.org>2017-07-04 17:12:23 +0200
commit9c6cb58812aa92a4c56a94b2b51bd85b2aebc2a1 (patch)
tree001fc0d559e98520568a2174669e2f29c3a8625a /include
parentc0cc9f1df9fd4c5e758470f05d0e48123f0638ae (diff)
downloadlibffi-9c6cb58812aa92a4c56a94b2b51bd85b2aebc2a1.tar.gz
__attribute__ deprecated (msg) only since gcc 4.5
make it work with older compilers
Diffstat (limited to 'include')
-rw-r--r--include/ffi.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/ffi.h.in b/include/ffi.h.in
index 5833525..d76d8e6 100644
--- a/include/ffi.h.in
+++ b/include/ffi.h.in
@@ -315,7 +315,12 @@ ffi_prep_closure (ffi_closure*,
ffi_cif *,
void (*fun)(ffi_cif*,void*,void**,void*),
void *user_data)
- __attribute__((deprecated ("use ffi_prep_closure_loc instead")));
+#if defined(__GNUC__) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 405)
+ __attribute__((deprecated ("use ffi_prep_closure_loc instead")))
+#elif defined(__GNUC__) && __GNUC__ >= 3
+ __attribute__((deprecated))
+#endif
+ ;
ffi_status
ffi_prep_closure_loc (ffi_closure*,