This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

PATCH: remove ANSI_PROTOTYPES logic from binutils/


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>

Attachment: signature.asc
Description: OpenPGP digital signature


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