1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-21 03:32:29 +00:00

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

@ -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);
}