Hi, a simple, very old, oversight. Committed mainline and 4_8-branch.
Thanks, Paolo. //////////////////
2013-11-01 Paolo Carlini <paolo.carl...@oracle.com> PR libstdc++/58952 * include/c_global/cstdio: Undef getchar.
Index: include/c_global/cstdio =================================================================== --- include/c_global/cstdio (revision 204289) +++ include/c_global/cstdio (working copy) @@ -69,6 +69,7 @@ #undef ftell #undef fwrite #undef getc +#undef getchar #if __cplusplus <= 201103L # undef gets #endif