mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-25 05:51:55 -08:00
dffi: define ffi_type_complex_* types only when available
In ecl_type_to_libffi_types we have definitions for complex float types when appropriate define is present. Fixes #546.
This commit is contained in:
parent
ef450d9070
commit
1ccf7db8f8
1 changed files with 6 additions and 0 deletions
|
|
@ -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'*/
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue