mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Move the declaration SetInformationJobObject() outside of namespace.
It is also workaround for PR7927. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114175 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cdd7fb7853
commit
4cec6e2103
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user