Don't use complex.h since *BSDs don't have it in latest release versions (gah!); add DLLEXPORT for ffi_test_45 to make it work on Windows
parent
31f976e0e9
commit
05632b8525
|
@ -303,7 +303,7 @@ struct test_struct_14 ffi_test_44(void)
|
|||
return retval;
|
||||
}
|
||||
|
||||
complex float ffi_test_45(complex float x, complex double y)
|
||||
_Complex float ffi_test_45(_Complex float x, _Complex double y)
|
||||
{
|
||||
return x + 2 * y;
|
||||
}
|
||||
|
|
|
@ -89,4 +89,4 @@ DLLEXPORT struct test_struct_16 ffi_test_43(float x, int a);
|
|||
|
||||
DLLEXPORT struct test_struct_14 ffi_test_44();
|
||||
|
||||
complex float ffi_test_45(complex float x, complex double y);
|
||||
DLLEXPORT _Complex float ffi_test_45(_Complex float x, _Complex double y);
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <complex.h>
|
||||
#include <stdbool.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue