[llvm] 7a4b392 - [Support] Remove an outdated MinGW workaround (#145294)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 07:13:48 PDT 2025
Author: Martin Storsjö
Date: 2025-06-24T17:13:44+03:00
New Revision: 7a4b3925598c07f5b4523a701ba6c34e483078d6
URL: https://github.com/llvm/llvm-project/commit/7a4b3925598c07f5b4523a701ba6c34e483078d6
DIFF: https://github.com/llvm/llvm-project/commit/7a4b3925598c07f5b4523a701ba6c34e483078d6.diff
LOG: [Support] Remove an outdated MinGW workaround (#145294)
mingw-w64 has had the _HEAPOK define since the initial commits in 2007;
unclear when/where it was added for mingw.org headers, but it does seem
to exist there as well (at least in versions from 2011).
This workaround stems from 53fbecce6e8b7d1f024e3dc6df4160fe9a577ff1 from
2004 - it is no longer relevant today.
Added:
Modified:
llvm/lib/Support/Windows/Process.inc
Removed:
################################################################################
diff --git a/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc
index d525f5b16e862..c4d18ca7375f2 100644
--- a/llvm/lib/Support/Windows/Process.inc
+++ b/llvm/lib/Support/Windows/Process.inc
@@ -37,11 +37,6 @@
//=== and must not be UNIX code
//===----------------------------------------------------------------------===//
-#ifdef __MINGW32__
-// This ban should be lifted when MinGW 1.0+ has defined this value.
-#define _HEAPOK (-2)
-#endif
-
using namespace llvm;
Process::Pid Process::getProcessId() {
More information about the llvm-commits
mailing list