2011/7/21 Basile Starynkevitch <bas...@starynkevitch.net>: > And I want badly MELT to be compilable as a plugin to an umodified > gcc-4.6-plugin-dev > package on Debian. > > I don't understand if it is an issue related to building GCC & its plugin > with C++, or > it is an issue with 4.7 ? > > I am tempted to put in melt-runtime.c something like > > /* Headers from c-family/ should be included directly with GCC4.6, but not > with GCC 4.7 > or when compiling with a C++ compiler. */ > #if defined(GCCPLUGIN_VERSION) || MELT_GCC_VERSION>4006 || > defined(__cplusplus) > #include "c-family/c-pragma.h" > #else > #include "c-pragma.h" > #endif > > And likewise in melt-run.proto.h > > What do you think? (I really want the MELT plugin to be compilable on an > installed > gcc-4.6!)
This will work for all case (iff my patch for the trunk is applied some day !)