ctypes 0.6.3 released

Ganesan R rganesan at myrealbox.com
Tue Jan 20 12:33:04 CET 2004


>>>>> "Thomas" == Thomas Heller <theller at python.net> writes:

>     It works on Windows, Linux and MacOS X (the latter require that
>     your machine is supported by libffi).

Hi,

I maintain the ctypes Debian package. The following patch allows ctypes to
be built on 64-bit archs.

--- ctypes-0.6.3.orig/source/callproc.c
+++ ctypes-0.6.3/source/callproc.c
@@ -549,11 +549,11 @@
 #if (SIZEOF_LONG_LONG == 8 && SIZEOF_LONG == 4)
 #undef ffi_type_ulong
 #define ffi_type_ulong ffi_type_uint32
-#define ffi_type_ulonglong ffi_type_uint64
 #undef ffi_type_slong
 #define ffi_type_slong ffi_type_sint32
-#define ffi_type_slonglong ffi_type_sint64
 #endif
+#define ffi_type_ulonglong ffi_type_uint64
+#define ffi_type_slonglong ffi_type_sint64

Ganesan

--
Ganesan R (rganesan at debian dot org) | http://www.debian.org/~rganesan/
1024D/5D8C12EA, fingerprint F361 84F1 8D82 32E7 1832  6798 15E0 02BA 5D8C 12EA




More information about the Python-list mailing list