mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +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:
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
// We need to undo a macro defined in Windows.h, otherwise we won't compile:
|
// We need to undo a macro defined in Windows.h, otherwise we won't compile:
|
||||||
#undef CopyFile
|
#undef CopyFile
|
||||||
|
#undef GetCurrentDirectory
|
||||||
|
|
||||||
// Windows happily accepts either forward or backward slashes, though any path
|
// Windows happily accepts either forward or backward slashes, though any path
|
||||||
// returned by a Win32 API will have backward slashes. As LLVM code basically
|
// returned by a Win32 API will have backward slashes. As LLVM code basically
|
||||||
@@ -226,7 +227,7 @@ Path::GetUserHomeDirectory() {
|
|||||||
Path
|
Path
|
||||||
Path::GetCurrentDirectory() {
|
Path::GetCurrentDirectory() {
|
||||||
char pathname[MAX_PATH];
|
char pathname[MAX_PATH];
|
||||||
GetCurrentDirectory(pathname,MAX_PATH);
|
::GetCurrentDirectoryA(MAX_PATH,pathname);
|
||||||
return Path(pathname);
|
return Path(pathname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user