From: Erik P. <epe...@iv...> - 2006-12-12 02:26:54
|
On Tue, 12 Dec 2006, Borut Razem wrote: > At the first glance it seems that the macros in pragma lines are not > preprocessed. > But anyway, do you have an idea why the problem is only on ppc64 > platform? This actually miss leaded me :-( > > I made a quick test on gcc cpp, and it seems that the behaviour is the > same: macros in pragma lines are not preprocessed!? > > I don't know what the standard says about this issue. If the gcc cpp is > correct, then we have to change all macros in pragmas with the actual > values :-( There's a footnote in ISO/IEC 9899:1999 subclause 6.10.6 that answers this very question: "An implementation is not required to perform macro replacement in pragmas, but it is permitted except for in standard pragmas (where STDC immediately follows pragma)." Erik |