Fix mingw32 build
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 19 Mar 2007 20:19:08 +0000 (20:19 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 19 Mar 2007 20:19:08 +0000 (20:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35177 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/Program.inc

index 7cc14a24d4dcc16037a5cc915da8904fe86bc5c6..60e9e419abb3a72c7eb34b828fe0fc389788ec66 100644 (file)
@@ -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,