microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 791 forks source link

Cannot build mimalloc-2.1.7 with mingw32-8.5.0 #910

Closed WennerChen closed 3 weeks ago

WennerChen commented 3 weeks ago

When I build mimalloc-2.1.7 with mingw32-8.5.0, I get an error:

'ERROR_COMMITMENT_MINIMUM' undeclared (first use in src/prim/windows/prim.c:212:10).

Is there something wrong?

WennerChen commented 3 weeks ago

My toolchain is based on mingw-w64-6.0.1, but ERROR_COMMITMENT_MINIMUM is first defined in mingw-w64-10.0.0, that's why I got the error.