diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-09-17 11:14:18 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-09-17 11:14:18 +0000 |
| commit | ab5077ab7185871b5d52ea16d9c1ddc6055b8c3d (patch) | |
| tree | 1b191db927d63c8d2b2bb9030b3a351672288853 /llvm | |
| parent | 433c9e146a5244cc05a2a8c445f96cb439f0a271 (diff) | |
| download | bcm5719-llvm-ab5077ab7185871b5d52ea16d9c1ddc6055b8c3d.tar.gz bcm5719-llvm-ab5077ab7185871b5d52ea16d9c1ddc6055b8c3d.zip | |
Move the declaration SetInformationJobObject() outside of namespace.
It is also workaround for PR7927.
llvm-svn: 114175
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/System/Win32/Program.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc index 16bb28e17a2..ea1b5a6a069 100644 --- a/llvm/lib/System/Win32/Program.inc +++ b/llvm/lib/System/Win32/Program.inc @@ -22,6 +22,15 @@ //=== and must not be UNIX code //===----------------------------------------------------------------------===// +#ifdef __MINGW32__ +// Ancient mingw32's w32api might not have this declaration. +extern "C" +BOOL WINAPI SetInformationJobObject(HANDLE hJob, + JOBOBJECTINFOCLASS JobObjectInfoClass, + LPVOID lpJobObjectInfo, + DWORD cbJobObjectInfoLength); +#endif + namespace { struct Win32ProcessInfo { HANDLE hProcess; @@ -123,15 +132,6 @@ static HANDLE RedirectIO(const Path *path, int fd, std::string* ErrMsg) { return h; } -#ifdef __MINGW32__ - // Due to unknown reason, mingw32's w32api doesn't have this declaration. - extern "C" - BOOL WINAPI SetInformationJobObject(HANDLE hJob, - JOBOBJECTINFOCLASS JobObjectInfoClass, - LPVOID lpJobObjectInfo, - DWORD cbJobObjectInfoLength); -#endif - /// ArgNeedsQuotes - Check whether argument needs to be quoted when calling /// CreateProcess. static bool ArgNeedsQuotes(const char *Str) { |

