OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aabe38b
)
Unbreak mingw build
author
Anton Korobeynikov
<asl@math.spbu.ru>
Sat, 22 Dec 2007 14:26:49 +0000
(14:26 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Sat, 22 Dec 2007 14:26:49 +0000
(14:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45314
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Win32/Path.inc
patch
|
blob
|
history
diff --git
a/lib/System/Win32/Path.inc
b/lib/System/Win32/Path.inc
index
7d96529
..
9ee393c
100644
(file)
--- 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);
}