[llvm-commits] [llvm] r114175 - /llvm/trunk/lib/System/Win32/Program.inc
NAKAMURA Takumi
geek4civic at gmail.com
Fri Sep 17 04:14:19 PDT 2010
Author: chapuni
Date: Fri Sep 17 06:14:18 2010
New Revision: 114175
URL: http://llvm.org/viewvc/llvm-project?rev=114175&view=rev
Log:
Move the declaration SetInformationJobObject() outside of namespace.
It is also workaround for PR7927.
Modified:
llvm/trunk/lib/System/Win32/Program.inc
Modified: llvm/trunk/lib/System/Win32/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Program.inc?rev=114175&r1=114174&r2=114175&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Program.inc (original)
+++ llvm/trunk/lib/System/Win32/Program.inc Fri Sep 17 06:14:18 2010
@@ -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 @@
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) {
More information about the llvm-commits
mailing list