PATCH: remove ANSI_PROTOTYPES logic from binutils/
Ben Elliston
bje@au1.ibm.com
Fri Jul 8 05:26:00 GMT 2005
Here is the first in a series of patches. Okay for mainline?
2005-07-08 Ben Elliston <bje@au.ibm.com>
* bucomm.h: Include <stdarg.h> unconditionally, not only when
ANSI_PROTOTYPES is defined. Remove #ifdef logic.
* dlltool.c: Likewise.
* dllwrap.c: Likewise.
Index: bucomm.h
===================================================================
RCS file: /home/bje/src-cvs/src/binutils/bucomm.h,v
retrieving revision 1.17
diff -u -p -r1.17 bucomm.h
--- bucomm.h 7 Jul 2005 19:27:33 -0000 1.17
+++ bucomm.h 8 Jul 2005 05:25:35 -0000
@@ -28,11 +28,7 @@
#include "config.h"
#include "bin-bugs.h"
-#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#ifdef USE_BINARY_FOPEN
#include "fopen-bin.h"
Index: dlltool.c
===================================================================
RCS file: /home/bje/src-cvs/src/binutils/dlltool.c,v
retrieving revision 1.62
diff -u -p -r1.62 dlltool.c
--- dlltool.c 7 Jul 2005 19:27:33 -0000 1.62
+++ dlltool.c 8 Jul 2005 05:25:13 -0000
@@ -254,13 +254,7 @@
#include <time.h>
#include <sys/stat.h>
-
-#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
#include <assert.h>
#ifdef DLLTOOL_ARM
Index: dllwrap.c
===================================================================
RCS file: /home/bje/src-cvs/src/binutils/dllwrap.c,v
retrieving revision 1.17
diff -u -p -r1.17 dllwrap.c
--- dllwrap.c 7 Jul 2005 19:27:33 -0000 1.17
+++ dllwrap.c 8 Jul 2005 05:25:13 -0000
@@ -38,12 +38,7 @@
#include <time.h>
#include <sys/stat.h>
-
-#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20050708/97eeec0f/attachment.sig>
More information about the Binutils
mailing list