summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-19 23:00:32 +0100
committerAustin Foxley <austinf@cetoncorp.com>2009-11-22 11:22:56 -0800
commit1cb4ff739888814cfcb28f3f1fe1306f5ebca9d0 (patch)
treed4547cad42b1236e74d65c5ba2d1cdf85d0e0e54 /libc
parent253ef908d2318eede6d45bb80d0fb2c2cbd32362 (diff)
downloaduClibc-alpine-1cb4ff739888814cfcb28f3f1fe1306f5ebca9d0.tar.bz2
uClibc-alpine-1cb4ff739888814cfcb28f3f1fe1306f5ebca9d0.tar.xz
SUSv4: disable isascii, toascii, _toupper, _tolower
[__]isascii need to be defined all the time for the build. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_ctype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_ctype.h b/libc/sysdeps/linux/common/bits/uClibc_ctype.h
index 43371286b..22d2df03a 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_ctype.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_ctype.h
@@ -103,12 +103,14 @@ __BEGIN_DECLS
/* Now some non-ansi/iso c99 macros. */
+#ifndef __UCLIBC_SUSV4_LEGACY__
#define __isascii(c) (((c) & ~0x7f) == 0)
#define __toascii(c) ((c) & 0x7f)
/* Works correctly *only* on lowercase letters! */
#define _toupper(c) ((c) ^ 0x20)
/* Works correctly *only* on letters (of any case) and numbers */
#define _tolower(c) ((c) | 0x20)
+#endif
__END_DECLS