This is the mail archive of the gcc@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] | |
There is excellent prior art here, with exactly this issue. The case came up with X11 and C++ and a keyword, probably class, and in some area that did affect api code.
#if (__GNUC_ == 3 && __GNUC_MINOR__ < 4) #define super_class class #
and then use super_class everywhere. It compiles on both, and it easy to maintain, as long as one doesn't get hit with other things called super_class. :-(
The change breaks all user code that uses class, but sometimes an easy to describe system is easier to fix than an insanely complex one.
The X11 folks grappled with this, gosh, a long long time ago. Time to enter the 90s. :-)
Thanks, Andrew Pinski
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |