Skip to content

Commit 1518bf5

Browse files
mati865jeremyd2019
andcommitted
[Clang][Cygwin] Remove erroneous define
Co-authored-by: Jeremy Drake <[email protected]>
1 parent 595cce4 commit 1518bf5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

clang/tools/libclang/CIndexer.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#ifdef __CYGWIN__
3030
#include <cygwin/version.h>
3131
#include <sys/cygwin.h>
32-
#define _WIN32 1
3332
#endif
3433

3534
#ifdef _WIN32
@@ -112,16 +111,6 @@ const std::string &CIndexer::getClangResourcesPath() {
112111
sizeof(mbi));
113112
GetModuleFileNameA((HINSTANCE)mbi.AllocationBase, path, MAX_PATH);
114113

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-
125114
LibClangPath += path;
126115
#elif defined(_AIX)
127116
getClangResourcesPathImplAIX(LibClangPath);

0 commit comments

Comments
 (0)