diff options
author | Eli Zaretskii <[email protected]> | 2012-06-26 20:00:33 +0300 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2012-06-26 20:00:33 +0300 |
commit | f6f62d1bee8de436859f1571c19876bc3ba4f6e3 (patch) | |
tree | 1d185378db75bafbb4ed10722b71c14a3aea97f3 /src/s/ms-w32.h | |
parent | cc06e7e7107b47250ad2a91817932b8079f4bc6e (diff) |
Define HAVE_STRCASECMP and HAVE_STRNCASECMP on MS-Windows.
src/s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to
_stricmp and _strnicmp.
(HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1.
Diffstat (limited to 'src/s/ms-w32.h')
-rw-r--r-- | src/s/ms-w32.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 20603562af..38e368e5bd 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h @@ -165,6 +165,14 @@ struct sigaction { #undef HAVE_AIX_SMT_EXP #define USE_TOOLKIT_SCROLL_BARS 1 +/* MinGW has these in its library; MSVC doesn't. */ +#ifdef _MSC_VER +#define strcasecmp(s1,s2) _stricmp(s1,s2) +#define strncasecmp(s1,s2) _strnicmp(s1,s2) +#endif +#define HAVE_STRCASECMP 1 +#define HAVE_STRNCASECMP 1 + /* Define if you have the ANSI `strerror' function. Otherwise you must have the variable `char *sys_errlist[]'. */ #define HAVE_STRERROR 1 |