summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/uClibc_ctype.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-27 11:01:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-27 11:01:17 +0000
commitd2ac303510709b978fe85719635ef715260a2e87 (patch)
treedd8d2198f115a466eaad20cd5832b179a157fbc1 /libc/sysdeps/linux/common/bits/uClibc_ctype.h
parentcf578c75a521e1f35a9f07ca04c0cd678209c79f (diff)
Help unifdef to remove private parts of headers
Diffstat (limited to 'libc/sysdeps/linux/common/bits/uClibc_ctype.h')
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_ctype.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_ctype.h b/libc/sysdeps/linux/common/bits/uClibc_ctype.h
index 04185cc58..9150b4870 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_ctype.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_ctype.h
@@ -171,7 +171,9 @@ __END_DECLS
//# define __tolower(c) __body(tolower,c)
//# define __toupper(c) __body(toupper,c)
-# if !defined __NO_CTYPE && !defined __cplusplus
+/* Do not combine in one #if - unifdef tool is not that clever */
+# ifndef __NO_CTYPE
+# ifndef __cplusplus
# define isspace(c) __isspace(c)
# define isblank(c) __isblank(c)
@@ -190,10 +192,12 @@ __END_DECLS
# define toupper(c) __body(toupper,c)
# endif
+# endif
#else /* !_GNUC__ */
-# if !defined __NO_CTYPE && !defined __cplusplus
+# ifndef __NO_CTYPE
+# ifndef __cplusplus
/* These macros should be safe from side effects!
* (not all __C_xxx macros are) */
@@ -205,6 +209,7 @@ __END_DECLS
# define isgraph(c) __C_isgraph(c)
# endif
+# endif
#endif /* __GNUC__ */
/**********************************************************************/