This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++ versions of C library header files not using std namespace
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: C++ versions of C library header files not using std namespace
- From: John Pedretti <pedretti at roguewave dot com>
- Date: Fri, 19 Nov 1999 13:57:54 -0700
Hi,
The C++ versions of the C Library header files provided with the gcc
distribution do not put the C standard library names into the std namespace
as specified by the IS. This could easily be accomplished by surrounding the
#include directive that includes the C header file into the C++ header with
the appropriate namespace declaration, e.g.,
------------------------------------
// file: cstdio
namespace std {
#include <stdio.h>
}
------------------------------------
, and would not impact existing code unless compiled with -fhonor-std flag.
-John
===========================
John A. Pedretti, Rogue Wave Software, Inc.
(303) 545-3150 pedretti@roguewave.com
===========================