This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: Fix name clash for ! __STDC__


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

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