Skip to content

Commit 400ec11

Browse files
mati865jeremyd2019
andcommitted
[Clang][Cygwin] Remove erroneous define and clean it up
Co-authored-by: Jeremy Drake <[email protected]>
1 parent 106d5d3 commit 400ec11

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

clang/tools/libclang/CIndexer.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
#include <cstdio>
2727
#include <mutex>
2828

29-
#ifdef __CYGWIN__
30-
#include <cygwin/version.h>
31-
#include <sys/cygwin.h>
32-
#define _WIN32 1
33-
#endif
34-
3529
#ifdef _WIN32
3630
#include <windows.h>
3731
#elif defined(_AIX)
@@ -112,16 +106,6 @@ const std::string &CIndexer::getClangResourcesPath() {
112106
sizeof(mbi));
113107
GetModuleFileNameA((HINSTANCE)mbi.AllocationBase, path, MAX_PATH);
114108

115-
#ifdef __CYGWIN__
116-
char w32path[MAX_PATH];
117-
strcpy(w32path, path);
118-
#if CYGWIN_VERSION_API_MAJOR > 0 || CYGWIN_VERSION_API_MINOR >= 181
119-
cygwin_conv_path(CCP_WIN_A_TO_POSIX, w32path, path, MAX_PATH);
120-
#else
121-
cygwin_conv_to_full_posix_path(w32path, path);
122-
#endif
123-
#endif
124-
125109
LibClangPath += path;
126110
#elif defined(_AIX)
127111
getClangResourcesPathImplAIX(LibClangPath);

0 commit comments

Comments
 (0)