std_cctype.h: Undefine macros that conflict with function names defined in this file.
authorMark Mitchell <mark@codesourcery.com>
Fri, 3 Nov 2000 06:20:17 +0000 (06:20 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 3 Nov 2000 06:20:17 +0000 (06:20 +0000)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/include/c/bits/std_cctype.h
libstdc++-v3/include/c/bits/std_cstdio.h

index 06f15b3e509f48447e4d463720edf264c8fc400c..17781253f7771957ce2aaa8452ff96fd3a607b6a 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Fix typo.
index bb50610b815ac053c9f45c4b3fe0c5286173900b..0fcbb748934c64b51080ee25d2513256c5596394 100644 (file)
 #pragma GCC system_header
 #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
 {
   extern "C" int isalnum(int __c);
index b5836244f2a7e796631e2ea1a07c2ac54eae2e8f..dc590319984f83655f74476936a2c387410e0dca 100644 (file)
 #pragma GCC system_header
 #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 
 {
   using ::FILE;