summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
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
commit2ffb2c9e594c49ba67af25e7bc1c0fc24b77041b (patch)
treea6291eb336ae93743b8e7b98a353a96cf0798237 /llvm/lib/System
parent345a00ba05edf0a62bef9d3a1d85b68fd1767b4d (diff)
downloadbcm5719-llvm-2ffb2c9e594c49ba67af25e7bc1c0fc24b77041b.tar.gz
bcm5719-llvm-2ffb2c9e594c49ba67af25e7bc1c0fc24b77041b.zip
Unbreak mingw build
llvm-svn: 45314
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/Path.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index 7d965291613..9ee393ca61c 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud