Closed dunhamsteve closed 6 months ago
Additional details:
It looks like we've been getting warnings about aligned_alloc
being implicitly defined for a while, but the latest github windows image contains a newer version of GCC that escalates this to an error. I also found cppreference.com which says that "This function is not supported in Microsoft C Runtime library".
It looks like, despite not being defined in the header files, the linker was finding this function. But I presume malloc
is fine here, since it is declared and is already being used on some systems.
Astounding work, thank you
Description
The support code calls
aligned_alloc
which does not appear to be supported on windows, and is not defined in thestdlib.h
header file. The latest GitHub windows image has turned the warning about this into an error, causing ci to fail.I’ve updated the condition in
memoryManagement.c
to use the fallback branch which callsmalloc
when building on windows.