summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-02-09 12:13:02 -0800
committerWaldemar Brodkorb <wbx@openadk.org>2020-02-10 08:11:05 +0100
commit90f24fc94897d93deb80d933d18a4f31dc6bf05a (patch)
tree76aa719927878fbe3db46604475ec03c229a524f
parent901462ce37938a712851be4981bc8223e1cae38d (diff)
include/ctype.h: restore __isctype_l definition
Recent is*_l fix broke uclibc build because removed __isctype_l definition was used in libc/misc/ctype/ctype.c. Restore it. Fixes: d1a3ca7ca566 ("include/ctype.h: drop is*_l macro definitions") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r--include/ctype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ctype.h b/include/ctype.h
index e934cf332..05f21c553 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -350,6 +350,7 @@ libc_hidden_proto(tolower_l)
/* Return the uppercase version of C. */
extern int toupper_l (int __c, __locale_t __l) __THROW;
+# define __isctype_l(c, type, locale) ((locale)->__ctype_b[(int) (c)] & (__ctype_mask_t) type)
# ifndef __NO_CTYPE
# if (defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN) \
&& defined __UCLIBC_SUSV4_LEGACY__