From 2e5f445da016dac4e9760941e7f05591fec657bb Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Thu, 23 Dec 2004 03:44:40 +0000 Subject: Patch to fix mingw compilation problem contributed by Henrik. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19112 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/Process.cpp | 5 +++++ lib/System/Win32/Process.inc | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'lib/System') diff --git a/lib/System/Win32/Process.cpp b/lib/System/Win32/Process.cpp index 3aa6ad4d49..00da74076b 100644 --- a/lib/System/Win32/Process.cpp +++ b/lib/System/Win32/Process.cpp @@ -22,6 +22,11 @@ //=== and must not be UNIX code //===----------------------------------------------------------------------===// +#ifdef __MINGW +// This ban should be lifted when MinGW 1.0+ has defined this value. +# define _HEAPOK (-2) +#endif + namespace llvm { using namespace sys; diff --git a/lib/System/Win32/Process.inc b/lib/System/Win32/Process.inc index 3aa6ad4d49..00da74076b 100644 --- a/lib/System/Win32/Process.inc +++ b/lib/System/Win32/Process.inc @@ -22,6 +22,11 @@ //=== and must not be UNIX code //===----------------------------------------------------------------------===// +#ifdef __MINGW +// This ban should be lifted when MinGW 1.0+ has defined this value. +# define _HEAPOK (-2) +#endif + namespace llvm { using namespace sys; -- cgit v1.2.3-70-g09d2