PATCH RFA: Add extern "C" to libcpp header files
Ian Lance Taylor
iant@google.com
Mon Jun 1 03:39:00 GMT 2009
This patch adds extern "C" to the header files in libcpp. This is a
stage toward enabling builds with C++. My present plan is to have gcc
be built using a C++ compiler but libcpp be built with a C compiler. In
the future, libcpp will probably move to a C++ compiler as well. It may
or may not be desirable to retain a C interface even when libcpp is
built with a C++ compiler; I don't know.
Bootstrapped on x86_64-unknown-linux-gnu. OK for mainline?
Ian
2009-05-31 Ian Lance Taylor <iant@google.com>
* include/cpp-id-data.h: Add extern "C".
* include/line-map.h: Likewise.
* include/mkdeps.h: Likewise.
* include/symtab.h: Likewise.
* internal.h: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 3094 bytes
Desc: Add extern \"C\" to libcpp header files
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090601/1bfbb5e6/attachment.bin>
More information about the Gcc-patches
mailing list