From d2ac303510709b978fe85719635ef715260a2e87 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 27 Dec 2008 11:01:17 +0000 Subject: Help unifdef to remove private parts of headers --- include/ctype.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ctype.h b/include/ctype.h index 6933c96c0..e1aea86a2 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -229,7 +229,9 @@ extern int _tolower(int __c) __THROW; })) #define __isctype(c, type) ((__UCLIBC_CTYPE_B)[(int)(c)] & (__ctype_mask_t)type) -#if !defined __NO_CTYPE && !defined __cplusplus +/* Do not combine in one #if - unifdef tool is not that clever */ +#ifndef __NO_CTYPE +#ifndef __cplusplus # define isalnum(c) __isctype((c), _ISalnum) # define isalpha(c) __isctype((c), _ISalpha) # define iscntrl(c) __isctype((c), _IScntrl) @@ -270,7 +272,8 @@ __NTH (toupper (int __c)) # define _toupper(c) ((int) (__UCLIBC_CTYPE_TOUPPER)[(int) (c)]) # endif -#endif /* Not __NO_CTYPE. */ +#endif /* not __cplusplus */ +#endif /* not __NO_CTYPE */ #if defined __USE_GNU && defined __UCLIBC_HAS_XLOCALE__ -- cgit v1.2.3