]> git.eshelyaron.com Git - emacs.git/commitdiff
Define HAVE_STRCASECMP and HAVE_STRNCASECMP on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Tue, 26 Jun 2012 17:00:33 +0000 (20:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 26 Jun 2012 17:00:33 +0000 (20:00 +0300)
 src/s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to
 _stricmp and _strnicmp.
 (HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1.

src/ChangeLog
src/s/ms-w32.h

index c7922ee8a8c47fbc8751017e5ed128d4dba496f4..ef1f210ba66fda4ab1bb6b1fa38492ee4e8b714d 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-26  Eli Zaretskii  <eliz@gnu.org>
+
+       * s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to
+       _stricmp and _strnicmp.
+       (HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1.
+
 2012-06-26  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * alloc.c (allocate_window): Zero out non-Lisp part of newly
index 20603562afa5777c973655335f6adcefadbb4052..38e368e5bd25e62d6e5d23672255d36d65f5e9da 100644 (file)
@@ -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