summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-09-18 16:17:51 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-08 16:56:33 +0200
commit3aa8bd943485ae7c3e05bfe4e99ec8daf4cfd2fa (patch)
tree793561ae8afb43cf0c5cbe3add2687d6f096e643
parentfdc6f045fa8b71a91a0c55b6390f8d0741e9f374 (diff)
_toupper, _tolower depend on SUSv4
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--include/ctype.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/ctype.h b/include/ctype.h
index 599054e4f..da73a44fc 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -218,7 +218,8 @@ libc_hidden_proto(__ctype_tolower)
extern int isctype(int __c, int __mask) __THROW;
#endif
-#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
+#if (defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN) \
+ && defined __UCLIBC_SUSV4_LEGACY__
/* These are the same as `toupper' and `tolower' except that they do not
check the argument for being in the range of a `char'. */
extern int _toupper(int __c) __THROW;
@@ -280,8 +281,10 @@ __NTH (toupper (int __c))
# if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
# define isascii(c) __isascii (c)
# define toascii(c) __toascii (c)
-# define _tolower(c) ((int) (__UCLIBC_CTYPE_TOLOWER)[(int) (c)])
-# define _toupper(c) ((int) (__UCLIBC_CTYPE_TOUPPER)[(int) (c)])
+# if __UCLIBC_SUSV4_LEGACY__
+# define _tolower(c) ((int) (__UCLIBC_CTYPE_TOLOWER)[(int) (c)])
+# define _toupper(c) ((int) (__UCLIBC_CTYPE_TOUPPER)[(int) (c)])
+# endif
# endif
#endif /* not __cplusplus */