diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-30 22:20:09 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-12-05 14:32:45 -0800 |
commit | d829a7c5cb42c979b58f3547136df5b05d906423 (patch) | |
tree | 8ba5b6e2788f9bca49d51bb743dd0f211a91fb9f /os/strcasecmp.c | |
parent | 4be68b03128e958d2a6dc1b7feb3587329b9561b (diff) |
Move to autoconf standard function name checks & defines
Replace multiple methods of checking for functions with AC_CHECK_FUNCS
Replace multiple methods of selecting fallback funcs with AC_REPLACE_FUNCS
Replace HAS_* and NEED_* #defines with autogenerated HAVE_*
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'os/strcasecmp.c')
-rw-r--r-- | os/strcasecmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/strcasecmp.c b/os/strcasecmp.c index ad6da6a10..cf100baf4 100644 --- a/os/strcasecmp.c +++ b/os/strcasecmp.c @@ -34,7 +34,7 @@ #include <ctype.h> #include "dix.h" -#ifdef NEED_STRCASECMP +#ifndef HAVE_STRCASECMP int xstrcasecmp(const char *str1, const char *str2) { @@ -50,7 +50,7 @@ xstrcasecmp(const char *str1, const char *str2) } #endif -#ifdef NEED_STRNCASECMP +#ifndef HAVE_STRNCASECMP int xstrncasecmp(const char *s1, const char *s2, size_t n) { |