[llvm-commits] [llvm] r45314 - /llvm/trunk/lib/System/Win32/Path.inc

Anton Korobeynikov asl at math.spbu.ru
Sat Dec 22 06:26:49 PST 2007


Author: asl
Date: Sat Dec 22 08:26:49 2007
New Revision: 45314

URL: http://llvm.org/viewvc/llvm-project?rev=45314&view=rev
Log:
Unbreak mingw build

Modified:
    llvm/trunk/lib/System/Win32/Path.inc

Modified: llvm/trunk/lib/System/Win32/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Path.inc?rev=45314&r1=45313&r2=45314&view=diff

==============================================================================
--- llvm/trunk/lib/System/Win32/Path.inc (original)
+++ llvm/trunk/lib/System/Win32/Path.inc Sat Dec 22 08:26:49 2007
@@ -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
 Path::GetCurrentDirectory() {
   char pathname[MAX_PATH];
-  GetCurrentDirectory(pathname,MAX_PATH);
+  ::GetCurrentDirectoryA(MAX_PATH,pathname);
   return Path(pathname);  
 }
 





More information about the llvm-commits mailing list