Skip to content

Commit 36f6ba8

Browse files
committed
cleaning up strcasecmp
1 parent 54c90f1 commit 36f6ba8

File tree

5 files changed

+8
-127
lines changed

5 files changed

+8
-127
lines changed

contrib/win32/openssh/win32compat.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\daemon.c" />
150150
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\kerberos.c" />
151151
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\startupneeds.c" />
152-
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\strcasecmp.c" />
153152
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\tncon.c" />
154153
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\tnnet.c" />
155154
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\win32auth.c" />

contrib/win32/openssh/win32compat.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\startupneeds.c">
5252
<Filter>Source Files</Filter>
5353
</ClCompile>
54-
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\strcasecmp.c">
55-
<Filter>Source Files</Filter>
56-
</ClCompile>
5754
<ClCompile Include="$(OpenSSH-Src-Path)\contrib\win32\win32compat\tncon.c">
5855
<Filter>Source Files</Filter>
5956
</ClCompile>

contrib/win32/win32compat/inc/unistd.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,6 @@
2727
#define getdtablesize() MAX_FDS
2828
#define gethostname w32_gethostname
2929

30-
#define fopen w32_fopen_utf8
31-
3230
int daemon(int nochdir, int noclose);
3331

34-
/* Compatibility header to avoid lots of #ifdefs in includes.h on Win32 */
35-
36-
#include <conio.h>
37-
38-
/* We can't put these in string.h since we can't easily override that header, so here they are */
39-
#if !defined(HAVE_STRCASECMP) && !defined(__MINGW32__)
40-
size_t strcasecmp(const char *left, const char *right);
41-
#endif
42-
43-
#if !defined(HAVE_STRNCASECMP) && !defined(__MINGW32__)
44-
size_t strncasecmp(const char *left, const char *right, size_t n);
45-
#endif
46-
47-
#define popen _popen
48-
#define pclose _pclose
49-
50-
/* End of prototypes in the wrong file */
51-
5232
#endif

contrib/win32/win32compat/inc/w32posix.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,11 @@ struct iovec
163163

164164
void
165165
explicit_bzero(void *b, size_t len);
166+
167+
/* string.h overrides */
168+
#define strcasecmp _stricmp
169+
#define strncasecmp _strnicmp
170+
/* stdio.h overrides */
171+
#define fopen w32_fopen_utf8
172+
#define popen _popen
173+
#define pclose _pclose

contrib/win32/win32compat/strcasecmp.c

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)