Wouldn't it be easier to make two header trees:
/usr/include/ansi
/usr/include/classic
and either use the -I option to select which tree is used, or put
files like this:
#if __STDC__ == 1 /* not: not just ifdef; see comp.lang.c FAQ */
# include <ansi/foo.h>
#else
# include <classic/foo.h>
#endif
into /usr/include.
This would IMHO be more neat than your proposed solution.
Previous message: [thread] [date] [author] Next message: [thread] [date] [author]
Messages in current thread:
Header structure for mixed Classic/ANSI, Lars Wirzenius, (Mon Nov 11, 3:45 pm)