microsoft / mimalloc

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

fix build #892

Closed nautaa closed 4 months ago

nautaa commented 4 months ago

close #885

daanx commented 4 months ago

Thanks for the PR! However, even though we can undefine strdup it also means we won't override it generally since most other files will use the define'd strdup. (in this case it is fine for #885 since that uses calloc/malloc internally though). Maybe it is better to check if strdup is a #define and just not override in that case? I think I will do this instead unless I missed something?