summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-09 09:37:04 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-09 09:37:24 -0800
commitbdef3073d3094ede3e5f376767e07868dd9f69dd (patch)
tree6b1dab1a9266da2b56038108f63a2a7c85135fc2
parent773b91600f501055676a47741d0f126ee22bb4c9 (diff)
Use _stricmp() instead of strcasecmp() on WindowsHEADmaster
Fixes: 8fa3682 ("Assume all target platforms have strcasecmp() now") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xedit/-/merge_requests/11>
-rw-r--r--xedit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xedit.h b/xedit.h
index 50351f1..553b779 100644
--- a/xedit.h
+++ b/xedit.h
@@ -182,6 +182,9 @@ void TagsAction(Widget, XEvent*, String*, Cardinal*);
void SearchTagsFile(xedit_flist_item *item);
/* externs for system replacement functions */
+#if defined(_MSC_VER)
+#define strcasecmp _stricmp
+#endif
#ifdef NEED_REALPATH
#include <sys/param.h>
char *realpath(const char *pathname, char resolvedname[MAXPATHLEN]);