Commit 11d6fb54 by Mark Mitchell Committed by Mark Mitchell

std_cctype.h: Undefine macros that conflict with function names defined in this file.

	* include/c/bits/std_cctype.h: Undefine macros that conflict
	with function names defined in this file.
	* include/c/bits/std_cstdio.h: Likewise.

From-SVN: r37221
parent 6c6a14b5
Thu Nov 2 23:19:20 2000 Mark P Mitchell <mark@codesourcery.com>
* include/c/bits/std_cctype.h: Undefine macros that conflict
with function names defined in this file.
* include/c/bits/std_cstdio.h: Likewise.
2000-11-02 Mark Mitchell <mark@codesourcery.com> 2000-11-02 Mark Mitchell <mark@codesourcery.com>
* acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Fix typo. * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Fix typo.
......
...@@ -41,6 +41,22 @@ ...@@ -41,6 +41,22 @@
#pragma GCC system_header #pragma GCC system_header
#include_next <ctype.h> #include_next <ctype.h>
// Get rid of those macros defined in <ctype.h> in lieu of real functions.
#undef isalnum
#undef isalpha
#undef isblank
#undef iscntrl
#undef isdigit
#undef isgraph
#undef islower
#undef isprint
#undef ispunct
#undef isspace
#undef isupper
#undef isxdigit
#undef tolower
#undef toupper
namespace std namespace std
{ {
extern "C" int isalnum(int __c); extern "C" int isalnum(int __c);
......
...@@ -41,6 +41,16 @@ ...@@ -41,6 +41,16 @@
#pragma GCC system_header #pragma GCC system_header
#include_next <stdio.h> #include_next <stdio.h>
// Get rid of those macros defined in <stdio.h> in lieu of real functions.
#undef clearerr
#undef feof
#undef ferror
#undef fileno
#undef getc
#undef getchar
#undef putc
#undef putchar
namespace std namespace std
{ {
using ::FILE; using ::FILE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment