mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-24 21:41:29 -08:00
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:
commit
8ff5d8b60c
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