Merge branch 'fix-546' into 'develop'

dffi: define ffi_type_complex_* types only when available

Closes #546

See merge request embeddable-common-lisp/ecl!175
This commit is contained in:
Marius Gerbershagen 2020-01-02 14:45:58 +00:00
commit 8ff5d8b60c

View file

@ -215,9 +215,15 @@ static ffi_type *ecl_type_to_libffi_types[] = {
&ffi_type_double, /*@':double',*/
&ffi_type_longdouble, /*@':long-double',*/
#ifdef ECL_COMPLEX_FLOAT
# ifdef FFI_TARGET_HAS_COMPLEX_TYPE
&ffi_type_complex_float, /*@':csfloat',*/
&ffi_type_complex_double, /*@':cdfloat',*/
&ffi_type_complex_longdouble, /*@':clfloat',*/
# else
NULL, /*@':csfloat',*/
NULL, /*@':cdfloat',*/
NULL, /*@':clfloat',*/
# endif
#endif
&ffi_type_void /*@':void'*/
};