Merge pull request #309 from rurban/oldgcc

__attribute__ deprecated (msg) only since gcc 4.5
This commit is contained in:
Tom Tromey
2017-07-12 12:43:06 -06:00
committed by GitHub
+6 -1
View File
@@ -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*,