feat(testsuite): add Emscripten support to libffi.closures tests

This commit is contained in:
Anthony Green 2025-06-04 07:57:21 -04:00
parent 2d8868ace7
commit d38abaf9db
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,9 @@ typedef int (*closure_test_type1)(float, float, float, float, signed short,
float, float, int, double, int, int, float,
int, int, int, int);
#ifdef __EMSCRIPTEN__
extern "C"
#endif
int main (void)
{
ffi_cif cif;

View File

@ -14,6 +14,9 @@ static int checking(int a __UNUSED__, short b __UNUSED__,
throw 9;
}
#ifdef __EMSCRIPTEN__
extern "C"
#endif
int main (void)
{
ffi_cif cif;