summaryrefslogtreecommitdiff
path: root/lib/System/Win32
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-12-22 14:26:49 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-12-22 14:26:49 +0000
commit64ddbe48e1fff857a5d0c426735deedfbefb1eec (patch)
tree5765afcc192a1f7e1ade59fabf60d49a02fe810e /lib/System/Win32
parentaabe38bf0c773dffed5c12a35e894915418af512 (diff)
downloadllvm-64ddbe48e1fff857a5d0c426735deedfbefb1eec.tar.gz
llvm-64ddbe48e1fff857a5d0c426735deedfbefb1eec.tar.bz2
llvm-64ddbe48e1fff857a5d0c426735deedfbefb1eec.tar.xz
Unbreak mingw build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32')
-rw-r--r--lib/System/Win32/Path.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index 7d96529161..9ee393ca61 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -24,6 +24,7 @@
// We need to undo a macro defined in Windows.h, otherwise we won't compile:
#undef CopyFile
+#undef GetCurrentDirectory
// Windows happily accepts either forward or backward slashes, though any path
// returned by a Win32 API will have backward slashes. As LLVM code basically
@@ -226,7 +227,7 @@ Path::GetUserHomeDirectory() {
Path
Path::GetCurrentDirectory() {
char pathname[MAX_PATH];
- GetCurrentDirectory(pathname,MAX_PATH);
+ ::GetCurrentDirectoryA(MAX_PATH,pathname);
return Path(pathname);
}