[clang] Headers: prefer `corecrt_malloc.h` to `malloc.h` (PR #131668)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 13:46:10 PDT 2025
================
@@ -13,7 +13,7 @@
#include <stdlib.h>
#ifdef _WIN32
-#include <malloc.h>
+#include <corecrt_malloc.h>
----------------
compnerd wrote:
Thanks for the typo correction!
I think that I can add in a `!defined(__MINGW32__)` condition.
https://github.com/llvm/llvm-project/pull/131668
More information about the cfe-commits
mailing list