summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDave Brolley <brolley@cygnus.com>1998-05-25 11:04:40 +0000
committerDave Brolley <brolley@gcc.gnu.org>1998-05-25 07:04:40 -0400
commit33b019ade8136a7cdef8a39863f442e72b526333 (patch)
treef57ea5057cebd77d1dba8078d330501c13951266 /gcc
parent67ffc8124f94d059eba8bcda0d1cfa070bc4eae0 (diff)
downloadgcc-33b019ade8136a7cdef8a39863f442e72b526333.tar.gz
cpperror.c (v_cpp_message): Remove static prototype.
Mon May 25 14:00:13 1998 Dave Brolley <brolley@cygnus.com> * cpperror.c (v_cpp_message): Remove static prototype. * cpplib.c (v_cpp_message): Move prototype to cpplib.h. * cpplib.h (v_cpp_message): Add protoptype. (stdarg.h,varargs.h): Needed for v_cpp_message prototype. From-SVN: r20046
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/cpperror.c2
-rw-r--r--gcc/cpplib.c1
-rw-r--r--gcc/cpplib.h6
4 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4de20155947..bfc786fa4b1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Mon May 25 14:00:13 1998 Dave Brolley <brolley@cygnus.com>
+
+ * cpperror.c (v_cpp_message): Remove static prototype.
+ * cpplib.c (v_cpp_message): Move prototype to cpplib.h.
+ * cpplib.h (v_cpp_message): Add protoptype.
+ (stdarg.h,varargs.h): Needed for v_cpp_message prototype.
+
Sun May 24 20:36:15 PDT 1998 Jeff Law (law@cygnus.com)
* version.c: Bump for snapshot.
diff --git a/gcc/cpperror.c b/gcc/cpperror.c
index fdd08195c29..c4cac065e7c 100644
--- a/gcc/cpperror.c
+++ b/gcc/cpperror.c
@@ -37,8 +37,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "cpplib.h"
-static void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list));
-
/* Print the file names and line numbers of the #include
commands which led to the current file. */
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 884bda19908..6084d3f6cb2 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -202,7 +202,6 @@ struct cpp_pending {
char *xmalloc ();
extern void cpp_hash_cleanup PARAMS ((cpp_reader *));
-extern void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list));
static void add_import PROTO ((cpp_reader *, int, char *));
static void append_include_chain PROTO ((cpp_reader *,
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index 49fcc737f05..37468dd0a69 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -22,6 +22,11 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef __STDC__
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
#ifdef __cplusplus
extern "C" {
@@ -654,6 +659,7 @@ extern void cpp_pedwarn_with_file_and_line PVPROTO ((cpp_reader *, char *, int,
ATTRIBUTE_PRINTF_4;
extern void cpp_error_from_errno PROTO ((cpp_reader *, const char *));
extern void cpp_perror_with_name PROTO ((cpp_reader *, const char *));
+extern void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list));
extern void cpp_grow_buffer PARAMS ((cpp_reader *, long));
extern int cpp_parse_escape PARAMS ((cpp_reader *, char **));