Closed glebm closed 2 years ago
This only fixes the declarations but there is nothing to actually link them against.
The built-in C++ aligned allocation is not defined:
lld: error: undefined symbol: void * __cdecl operator new(unsigned int, enum std::align_val_t)
Neither are _aligned_malloc
and posix_memalloc
.
Updated the patch.
It now works together with https://github.com/XboxDev/nxdk-pdclib/pull/52 and https://github.com/XboxDev/nxdk/pull/603 :tada:
@Ryzee119 This needs to be merged as well to fully enable aligned_alloc (and submodule needs to be bumped in nxdk)
Appears to work fine, merging
Fixes https://github.com/XboxDev/nxdk/issues/587