mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Stop using MS-deprecated names stricmp and strnicmp.
clang-cl generates warnings saying they're deprecated, in favour of the same names but prefixed with an underscore. The warnings are coming from the standard MS headers, and I'm already #defining those names differently on Unix, so I'll honour them.
This commit is contained in:
parent
730a9fdfe3
commit
c7f466309c
@ -93,6 +93,11 @@ struct FontSpec *fontspec_new(const char *name,
|
||||
#define PLATFORM_HAS_SMEMCLR /* inhibit cross-platform one in misc.c */
|
||||
#endif
|
||||
|
||||
/* Up-to-date Windows headers warn that the unprefixed versions of
|
||||
* these names are deprecated. */
|
||||
#define stricmp _stricmp
|
||||
#define strnicmp _strnicmp
|
||||
|
||||
#define BROKEN_PIPE_ERROR_CODE ERROR_BROKEN_PIPE /* used in sshshare.c */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user