Unbreak mingw build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2007-12-22 14:26:49 +00:00
parent aabe38bf0c
commit 64ddbe48e1

View File

@@ -24,6 +24,7 @@
// We need to undo a macro defined in Windows.h, otherwise we won't compile: // We need to undo a macro defined in Windows.h, otherwise we won't compile:
#undef CopyFile #undef CopyFile
#undef GetCurrentDirectory
// Windows happily accepts either forward or backward slashes, though any path // Windows happily accepts either forward or backward slashes, though any path
// returned by a Win32 API will have backward slashes. As LLVM code basically // returned by a Win32 API will have backward slashes. As LLVM code basically
@@ -226,7 +227,7 @@ Path::GetUserHomeDirectory() {
Path Path
Path::GetCurrentDirectory() { Path::GetCurrentDirectory() {
char pathname[MAX_PATH]; char pathname[MAX_PATH];
GetCurrentDirectory(pathname,MAX_PATH); ::GetCurrentDirectoryA(MAX_PATH,pathname);
return Path(pathname); return Path(pathname);
} }