mirror of https://github.com/python/cpython.git
ffi_type_longdouble may be already #defined.
See issue 1324.
This commit is contained in:
parent
6e183f8f44
commit
469b2a52cd
|
@ -1753,11 +1753,13 @@ ffi_type ffi_type_sint64 = { 8, LONG_LONG_ALIGN, FFI_TYPE_SINT64 };
|
||||||
|
|
||||||
ffi_type ffi_type_float = { sizeof(float), FLOAT_ALIGN, FFI_TYPE_FLOAT };
|
ffi_type ffi_type_float = { sizeof(float), FLOAT_ALIGN, FFI_TYPE_FLOAT };
|
||||||
ffi_type ffi_type_double = { sizeof(double), DOUBLE_ALIGN, FFI_TYPE_DOUBLE };
|
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 ffi_type_longdouble = { sizeof(long double), LONGDOUBLE_ALIGN,
|
||||||
FFI_TYPE_LONGDOUBLE };
|
FFI_TYPE_LONGDOUBLE };
|
||||||
|
|
||||||
/* ffi_type ffi_type_longdouble */
|
|
||||||
|
|
||||||
ffi_type ffi_type_pointer = { sizeof(void *), VOID_P_ALIGN, FFI_TYPE_POINTER };
|
ffi_type ffi_type_pointer = { sizeof(void *), VOID_P_ALIGN, FFI_TYPE_POINTER };
|
||||||
|
|
||||||
/*---------------- EOF ----------------*/
|
/*---------------- EOF ----------------*/
|
||||||
|
|
Loading…
Reference in New Issue