summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2011-11-13 17:07:26 +0000
committertheraven <theraven@FreeBSD.org>2011-11-13 17:07:26 +0000
commit87b04fe3fbe77888f8f37d650cf82e6206d2813a (patch)
tree3b6645466bb27464de180ac0db6a93be28d719c3 /include
parent6efa0e7f2265e3682b271e87fb8123fb38ce080e (diff)
downloadFreeBSD-src-87b04fe3fbe77888f8f37d650cf82e6206d2813a.zip
FreeBSD-src-87b04fe3fbe77888f8f37d650cf82e6206d2813a.tar.gz
Hide some more macros that will break C++ when compiling in C++ mode.
Approved by: dim (mentor)
Diffstat (limited to 'include')
-rw-r--r--include/ctype.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ctype.h b/include/ctype.h
index 94bc8ab..c3f80f3 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -80,6 +80,7 @@ int isspecial(int);
#endif
__END_DECLS
+#ifndef __cplusplus
#define isalnum(c) __sbistype((c), _CTYPE_A|_CTYPE_D)
#define isalpha(c) __sbistype((c), _CTYPE_A)
#define iscntrl(c) __sbistype((c), _CTYPE_C)
@@ -93,6 +94,7 @@ __END_DECLS
#define isxdigit(c) __isctype((c), _CTYPE_X) /* ANSI -- locale independent */
#define tolower(c) __sbtolower(c)
#define toupper(c) __sbtoupper(c)
+#endif /* !__cplusplus */
#if __XSI_VISIBLE
/*
@@ -112,7 +114,7 @@ __END_DECLS
#define toascii(c) ((c) & 0x7F)
#endif
-#if __ISO_C_VISIBLE >= 1999
+#if __ISO_C_VISIBLE >= 1999 && !defined(__cplusplus)
#define isblank(c) __sbistype((c), _CTYPE_B)
#endif
OpenPOWER on IntegriCloud