This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: concatenation of strings in #include directive.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Nitin Gupta <ngupta at GlobespanVirata dot com>
- Cc: gcc at gnu dot org
- Date: Tue, 18 Feb 2003 20:36:13 +0000
- Subject: Re: concatenation of strings in #include directive.
- References: <IDEAKDGJLGFCFODOJGGIGEJJCAAA.ngupta@globespanvirata.com>
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.