Commit 2a988c4455d3926c59997b68f7510be63e10c841

Anthony Green 2015-11-15T08:33:46

Merge pull request #207 from tromey/deprecate-ffi-prep-closure mark ffi_prep_closure as deprecated

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/ffi.h.in b/include/ffi.h.in
index c43d52f..b07ca85 100644
--- a/include/ffi.h.in
+++ b/include/ffi.h.in
@@ -337,7 +337,8 @@ ffi_status
 ffi_prep_closure (ffi_closure*,
 		  ffi_cif *,
 		  void (*fun)(ffi_cif*,void*,void**,void*),
-		  void *user_data);
+		  void *user_data)
+  __attribute__((deprecated ("use ffi_prep_closure_loc instead")));
 
 ffi_status
 ffi_prep_closure_loc (ffi_closure*,