Fix name clash for ! __STDC__

Alan Modra alan@linuxcare.com.au
Fri Jun 2 17:59:00 GMT 2000


On Fri, 2 Jun 2000, Nick Clifton wrote:

> :  #ifdef __STDC__
> :  #define START_RELOC_NUMBERS(name)   enum name { _##name = -1
> :  #else
> : -#define START_RELOC_NUMBERS(name)   enum name { name = -1
> : +#define START_RELOC_NUMBERS(name)   enum name { _/**/name = -1
> :  #endif
> 
> Is this guarnateed to work with old K&R compilers ?

Well, the /**/ trick is the pre-ansi standard way to paste tokens.  Hmm,
grepping through the source finds a number of such occurrences,
eg. include/symcat.h and bfd/bfd-in.h.  I'll use "|| defined(ALMOST_STDC)"
as these files do.

-- 
Linuxcare.  Support for the Revolution.



More information about the Binutils mailing list