diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-04-22 12:21:20 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-04-22 12:21:20 -0700 |
commit | 5cc99a71a78acca9cc4c5e7cbeec3e54721a1e26 (patch) | |
tree | 66ca3b380b6eaeb3a6eb425b8abfbab012431575 | |
parent | e4d55bdc6ca6f9e4b7ff07d253acd04d0a9ec1f1 (diff) |
It has been required since Unix98/SUSv2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/merge_requests/8>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | xrefresh.c | 17 |
2 files changed, 1 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac index f287087..2482c7e 100644 --- a/configure.ac +++ b/configure.ac @@ -38,8 +38,6 @@ m4_ifndef([XORG_MACROS_VERSION], XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS -AC_CHECK_FUNCS([strcasecmp]) - # Checks for pkg-config packages PKG_CHECK_MODULES(XREFRESH, [x11 xproto >= 7.0.25]) @@ -60,10 +60,7 @@ SOFTWARE. #include <X11/Xlib.h> #include <X11/Xutil.h> #include <stdlib.h> - -#ifndef HAVE_STRCASECMP -# include <ctype.h> -#endif +#include <strings.h> static Window win; @@ -122,20 +119,8 @@ parse_boolean_option(char *option) { NULL, -1 }}; register const struct _booltable *t; -#ifndef HAVE_STRCASECMP - register char *cp; - - for (cp = option; *cp; cp++) { - if (isascii (*cp) && isupper (*cp)) *cp = tolower (*cp); - } -#endif - for (t = booltable; t->name; t++) { -#ifdef HAVE_STRCASECMP if (strcasecmp (option, t->name) == 0) return (t->value); -#else - if (strcmp (option, t->name) == 0) return (t->value); -#endif } return (-1); } |