This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Fix name clash for ! __STDC__
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Fix name clash for ! __STDC__
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 2 Jun 2000 13:41:09 +1000 (EST)
- cc: binutils at sourceware dot cygnus dot com
I'd like to apply the following to fix a problem when using old
compilers.
--
Linuxcare. Support for the Revolution.
include/elf/ChangeLog
* reloc-macros.h (START_RELOC_NUMBERS): Fix name clash.
Index: elf/reloc-macros.h
===================================================================
RCS file: /cvs/src/src/include/elf/reloc-macros.h,v
retrieving revision 1.2
diff -u -p -r1.2 reloc-macros.h
--- reloc-macros.h 1999/05/28 10:47:30 1.2
+++ reloc-macros.h 2000/06/02 03:16:47
@@ -1,5 +1,5 @@
/* Generic relocation support for BFD.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -103,6 +103,6 @@ name (rtype) \
#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
#define RELOC_NUMBER(name, number) , name = number