llvm.org GIT mirror llvm / 64ddbe4
Unbreak mingw build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45314 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 12 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2323
2424 // We need to undo a macro defined in Windows.h, otherwise we won't compile:
2525 #undef CopyFile
26 #undef GetCurrentDirectory
2627
2728 // Windows happily accepts either forward or backward slashes, though any path
2829 // returned by a Win32 API will have backward slashes. As LLVM code basically
225226 Path
226227 Path::GetCurrentDirectory() {
227228 char pathname[MAX_PATH];
228 GetCurrentDirectory(pathname,MAX_PATH);
229 ::GetCurrentDirectoryA(MAX_PATH,pathname);
229230 return Path(pathname);
230231 }
231232