diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-11-09 11:28:24 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-11-09 11:29:25 -0800 |
commit | a9c3d35a1f74de1681aeb7cdd66dce7bf186c666 (patch) | |
tree | 69cbaaabb785e662ad3a15aef4132e021a029f94 | |
parent | 3f354d20f5bc0276e27faa7fb5f6356319aa32c3 (diff) |
Fixes: 0b4873c ("Assume target platforms have strcasecmp, strncasecmp, & strdup now")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/merge_requests/25>
-rw-r--r-- | utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -137,6 +137,11 @@ uInformation(const char * /* s */ , ... #include <strings.h> #include <string.h> +#if defined(_MSC_VER) +#define strcasecmp _stricmp +#define strncasecmp _strnicmp +#endif + #define NullString ((char *)NULL) #define uStringText(s) ((s)==NullString?"<NullString>":(s)) |