Thomas Heller schrieb:
> Here are patches from the Python/ctypes libffi fork,
for the src directory.
> It would be great if they were applied, in full or
partially, to the libffi CVS repository.
I forgot the changes for ffi.h.in; here they are:
pcl-cvs: descending directory include/
Index: ffi.h.in
============================================================
=======
RCS file: /cvs/libffi/libffi/include/ffi.h.in,v
retrieving revision 1.10
diff -u -r1.10 ffi.h.in
--- ffi.h.in 15 Feb 2008 01:24:05 -0000 1.10
+++ ffi.h.in 26 Feb 2008 16:56:37 -0000
 -222,7
+222,7 
void ffi_raw_call (ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
void *rvalue,
ffi_raw *avalue);
 -235,7
+235,7 
/* longs and doubles are followed by an empty 64-bit
word. */
void ffi_java_raw_call (ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
void *rvalue,
ffi_java_raw *avalue);
 -349,12
+349,12 
ffi_type **atypes);
void ffi_call(ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
void *rvalue,
void **avalue);
/* Useful for eliminating compiler warnings */
-#define FFI_FN(f) ((void (*)())f)
+#define FFI_FN(f) ((void (*)(void))f)
/* ---- Definitions shared with assembly code
---------------------------- */
|