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

db4
Slava Pestov 2009-02-06 11:03:52 -06:00
parent 31f976e0e9
commit 05632b8525
3 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -8,7 +8,6 @@
#include <fcntl.h>
#include <limits.h>
#include <math.h>
#include <complex.h>
#include <stdbool.h>
#include <setjmp.h>