mimalloc
mimalloc copied to clipboard
fix build on non desktop windows app partitions
This is a patch set I used to build mimalloc on the xbox to get Cpython to build there.
The following functions / types are unavailable:
NTSTATUSnot availableGetConsoleScreenBufferInfo,CONSOLE_SCREEN_BUFFER_INFOandWriteConsoleAunavailableGetNumaNodeProcessorMaskunavailableGetLargePageMinimumunavailable
The functions for GetPhysicallyInstalledSystemMemory aren't available either, but they aren't used in the mimalloc version in Cpython 3.13. Since they are dynamically loaded it's quite likely that they won't cause any problems.
I wasn't entirely sure how you would like to have the api family guards defined / used in there.