concatenation of strings in #include directive.
Neil Booth
neil@daikokuya.co.uk
Tue Feb 18 21:03:00 GMT 2003
Nitin Gupta wrote:-
> Hi,
> The preprocessor of veteran egcs 1.1 would
> concatenate the strings appearing in the
> #include directive to make a single string
> e.g.
> #include "/foo/" "bar/" "my.h"
> would be converted to
> #include "/foo/bar/my.h"
> or
> #define BAR "bar/"
> #include "/foo/" BAR "my.h"
> would be converted to
> #include "/foo/bar/my.h"
This looks suspiciously similar to
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=9650
which I refer you to where I described how to do what you want in a
standards-conforming way.
Please urge upstream to fix their code.
Neil.
More information about the Gcc
mailing list