Don't expose the wctype.h macros in C++ mode. They cause problems when
people try to invoke the namespaced versions of the functions of the same names. Approved by: dim (mentor)
This commit is contained in:
parent
96e3cfc8bf
commit
22e24cfdc1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227476
@ -89,6 +89,7 @@ wint_t nextwctype(wint_t, wctype_t);
|
|||||||
#endif
|
#endif
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
#define iswalnum(wc) __istype((wc), _CTYPE_A|_CTYPE_D)
|
#define iswalnum(wc) __istype((wc), _CTYPE_A|_CTYPE_D)
|
||||||
#define iswalpha(wc) __istype((wc), _CTYPE_A)
|
#define iswalpha(wc) __istype((wc), _CTYPE_A)
|
||||||
#define iswblank(wc) __istype((wc), _CTYPE_B)
|
#define iswblank(wc) __istype((wc), _CTYPE_B)
|
||||||
@ -113,6 +114,7 @@ __END_DECLS
|
|||||||
#define iswphonogram(wc) __istype((wc), _CTYPE_Q)
|
#define iswphonogram(wc) __istype((wc), _CTYPE_Q)
|
||||||
#define iswrune(wc) __istype((wc), 0xFFFFFF00L)
|
#define iswrune(wc) __istype((wc), 0xFFFFFF00L)
|
||||||
#define iswspecial(wc) __istype((wc), _CTYPE_T)
|
#define iswspecial(wc) __istype((wc), _CTYPE_T)
|
||||||
#endif
|
#endif /* __BSD_VISIBLE */
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* _WCTYPE_H_ */
|
#endif /* _WCTYPE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user