Skip to content

Commit

Permalink
Hide some more macros that will break C++ when compiling in C++ mode.
Browse files Browse the repository at this point in the history
Approved by:	dim (mentor)
  • Loading branch information
davidchisnall committed Nov 13, 2011
1 parent 3b6dc18 commit c3b43c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/ctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
/*
Expand All @@ -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

Expand Down

0 comments on commit c3b43c5

Please sign in to comment.