|
@@ -218,7 +218,8 @@ libc_hidden_proto(__ctype_tolower)
|
|
extern int isctype(int __c, int __mask) __THROW;
|
|
extern int isctype(int __c, int __mask) __THROW;
|
|
#endif
|
|
#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
|
|
/* These are the same as `toupper' and `tolower' except that they do not
|
|
check the argument for being in the range of a `char'. */
|
|
check the argument for being in the range of a `char'. */
|
|
extern int _toupper(int __c) __THROW;
|
|
extern int _toupper(int __c) __THROW;
|
|
@@ -280,8 +281,10 @@ __NTH (toupper (int __c))
|
|
# if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
|
|
# if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
|
|
# define isascii(c) __isascii (c)
|
|
# define isascii(c) __isascii (c)
|
|
# define toascii(c) __toascii (c)
|
|
# define toascii(c) __toascii (c)
|
|
-# define _tolower(c) ((int) (__UCLIBC_CTYPE_TOLOWER)[(int) (c)])
|
|
+# if __UCLIBC_SUSV4_LEGACY__
|
|
-# define _toupper(c) ((int) (__UCLIBC_CTYPE_TOUPPER)[(int) (c)])
|
|
+# define _tolower(c) ((int) (__UCLIBC_CTYPE_TOLOWER)[(int) (c)])
|
|
|
|
+# define _toupper(c) ((int) (__UCLIBC_CTYPE_TOUPPER)[(int) (c)])
|
|
|
|
+# endif
|
|
# endif
|
|
# endif
|
|
|
|
|
|
#endif /* not __cplusplus */
|
|
#endif /* not __cplusplus */
|