summaryrefslogtreecommitdiff
path: root/lib/System/Win32
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Win32')
-rw-r--r--lib/System/Win32/Program.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc
index 7cc14a24d4..60e9e419ab 100644
--- a/lib/System/Win32/Program.inc
+++ b/lib/System/Win32/Program.inc
@@ -100,6 +100,7 @@ static HANDLE RedirectIO(const Path *path, int fd, std::string* ErrMsg) {
#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,