ctypes 0.6.3 released
Thomas Heller
theller at python.net
Tue Jan 20 14:32:08 EST 2004
Ganesan R <rganesan at myrealbox.com> writes:
>>>>>> "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
Cool, thanks. I've applied this in cvs.
Thomas
PS: Can you post (or send by private email, if it is large, the output
of the test suite: 'python setup.py test' ?
More information about the Python-list
mailing list