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]

Re: concatenation of strings in #include directive.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]