[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108749: Define HAVE_STRCASECMP and H
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108749: Define HAVE_STRCASECMP and HAVE_STRNCASECMP on MS-Windows. |
Date: |
Tue, 26 Jun 2012 20:00:33 +0300 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108749
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2012-06-26 20:00:33 +0300
message:
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.
modified:
src/ChangeLog
src/s/ms-w32.h
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-06-26 14:41:01 +0000
+++ b/src/ChangeLog 2012-06-26 17:00:33 +0000
@@ -1,3 +1,9 @@
+2012-06-26 Eli Zaretskii <address@hidden>
+
+ * 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 <address@hidden>
* alloc.c (allocate_window): Zero out non-Lisp part of newly
=== modified file 'src/s/ms-w32.h'
--- a/src/s/ms-w32.h 2012-06-24 17:21:20 +0000
+++ b/src/s/ms-w32.h 2012-06-26 17:00:33 +0000
@@ -165,6 +165,14 @@
#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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108749: Define HAVE_STRCASECMP and HAVE_STRNCASECMP on MS-Windows.,
Eli Zaretskii <=