mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +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:
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user