diff options
-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); } |