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]

Fix name clash for ! __STDC__


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


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