[Python-checkins] r58655 - python/trunk/Modules/_ctypes/cfield.c
thomas.heller
python-checkins at python.org
Thu Oct 25 21:47:32 CEST 2007
Author: thomas.heller
Date: Thu Oct 25 21:47:32 2007
New Revision: 58655
Modified:
python/trunk/Modules/_ctypes/cfield.c
Log:
ffi_type_longdouble may be already #defined.
See issue 1324.
Modified: python/trunk/Modules/_ctypes/cfield.c
==============================================================================
--- python/trunk/Modules/_ctypes/cfield.c (original)
+++ python/trunk/Modules/_ctypes/cfield.c Thu Oct 25 21:47:32 2007
@@ -1753,11 +1753,13 @@
ffi_type ffi_type_float = { sizeof(float), FLOAT_ALIGN, FFI_TYPE_FLOAT };
ffi_type ffi_type_double = { sizeof(double), DOUBLE_ALIGN, FFI_TYPE_DOUBLE };
+
+#ifdef ffi_type_longdouble
+#undef ffi_type_longdouble
+#endif
ffi_type ffi_type_longdouble = { sizeof(long double), LONGDOUBLE_ALIGN,
FFI_TYPE_LONGDOUBLE };
-/* ffi_type ffi_type_longdouble */
-
ffi_type ffi_type_pointer = { sizeof(void *), VOID_P_ALIGN, FFI_TYPE_POINTER };
/*---------------- EOF ----------------*/
More information about the Python-checkins
mailing list