diff options
author | theraven <theraven@FreeBSD.org> | 2011-11-12 20:45:10 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2011-11-12 20:45:10 +0000 |
commit | 997bd612ae88a2b00261d2f66bafe88b4cfebdc7 (patch) | |
tree | abee2bd0c137ba8627c503a7a5b7f85fc2c71a16 /include | |
parent | 4c433f2389cef540e7293bec13baa2b064e256f9 (diff) | |
download | FreeBSD-src-997bd612ae88a2b00261d2f66bafe88b4cfebdc7.zip FreeBSD-src-997bd612ae88a2b00261d2f66bafe88b4cfebdc7.tar.gz |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/wctype.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/wctype.h b/include/wctype.h index 098045f..183a2cd 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -89,6 +89,7 @@ wint_t nextwctype(wint_t, wctype_t); #endif __END_DECLS +#ifndef __cplusplus #define iswalnum(wc) __istype((wc), _CTYPE_A|_CTYPE_D) #define iswalpha(wc) __istype((wc), _CTYPE_A) #define iswblank(wc) __istype((wc), _CTYPE_B) @@ -113,6 +114,7 @@ __END_DECLS #define iswphonogram(wc) __istype((wc), _CTYPE_Q) #define iswrune(wc) __istype((wc), 0xFFFFFF00L) #define iswspecial(wc) __istype((wc), _CTYPE_T) -#endif +#endif /* __BSD_VISIBLE */ +#endif /* __cplusplus */ #endif /* _WCTYPE_H_ */ |