This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PLUGINS] Add 'extern "C"' wrappers to several header files


On Tue, Jul 21, 2009 at 10:39, Duncan Sands<baldrick@free.fr> wrote:

> include header files like this:
> Âextern "C" {
> Â#include "flags.h"
> Â}

Yes.  I ran into this problem recently trying to build a C++ plugin.
Thanks for fixing it.


> Â Â Â Â* coretypes.h: Wrap in 'extern "C"' when included by C++.
> Â Â Â Â* diagnostic.h: Likewise.
> Â Â Â Â* except.h: Likewise.
> Â Â Â Â* flags.h: Likewise.
> Â Â Â Â* gcc-plugin.h: Likewise.
> Â Â Â Â* gimple.h: Likewise.
> Â Â Â Â* input.h: Likewise.
> Â Â Â Â* machmode.h: Likewise.
> Â Â Â Â* output.h: Likewise.
> Â Â Â Â* real.h: Likewise.
> Â Â Â Â* rtl.h: Likewise.
> Â Â Â Â* target.h: Likewise.
> Â Â Â Â* toplev.h: Likewise.
> Â Â Â Â* tree-flow.h: Likewise.
> Â Â Â Â* tree-pass.h: Likewise.
> Â Â Â Â* tree.h: Likewise.
> Â Â Â Â* vec.h: Likewise.
> Â Â Â Â* configure.ac: Likewise in generated plugin-version.h.
> Â Â Â Â* configure: Likewise.
> Â Â Â Â* genflags.c: Likewise in generated insn-flags.h.
> Â Â Â Â* genpreds.c: Likewise in generated tm-preds.h.
> Â Â Â Â* opth-gen.awk: Likewise in generated options.h.

OK.

Ian, wouldn't you have needed this for --enable-build-with-cxx?


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]