[cfe-commits] r127283 - /cfe/trunk/tools/libclang/CIndexer.cpp

NAKAMURA Takumi geek4civic at gmail.com
Tue Mar 8 14:17:33 PST 2011


Author: chapuni
Date: Tue Mar  8 16:17:33 2011
New Revision: 127283

URL: http://llvm.org/viewvc/llvm-project?rev=127283&view=rev
Log:
libclang/CIndexer.cpp: Apply a new API for Cygwin-1.7, instead of deprecated one.

Modified:
    cfe/trunk/tools/libclang/CIndexer.cpp

Modified: cfe/trunk/tools/libclang/CIndexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexer.cpp?rev=127283&r1=127282&r2=127283&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexer.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexer.cpp Tue Mar  8 16:17:33 2011
@@ -32,6 +32,7 @@
 #include <sstream>
 
 #ifdef __CYGWIN__
+#include <cygwin/version.h>
 #include <sys/cygwin.h>
 #define LLVM_ON_WIN32 1
 #endif
@@ -60,8 +61,12 @@
 #ifdef __CYGWIN__
   char w32path[MAX_PATH];
   strcpy(w32path, path);
+#if CYGWIN_VERSION_API_MAJOR > 0 || CYGWIN_VERSION_API_MINOR >= 181
+  cygwin_conv_path(CCP_WIN_A_TO_POSIX, w32path, path, MAX_PATH);
+#else
   cygwin_conv_to_full_posix_path(w32path, path);
 #endif
+#endif
 
   llvm::sys::Path LibClangPath(path);
   LibClangPath.eraseComponent();





More information about the cfe-commits mailing list