Fix name clash for ! __STDC__

Nick Clifton nickc@cygnus.com
Fri Jun 2 10:47:00 GMT 2000


Hi Alan,

: I'd like to apply the following to fix a problem when using old
: compilers.

:  #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 ?

I have no objections otherwise, so if you are sure that it will work,
then please go ahead and check it in.

Cheers
	Nick


More information about the Binutils mailing list