From 22fd4704bccdd29ab742445e9a4017e457ef449f Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sun, 28 Jun 1992 20:31:11 +0000 Subject: [PATCH] * remote.c (remote_wait): Fix cast on signal() call. * defs.h (alloca): More diddling with alloca. Have to ensure that it has a prototype, so that if alloca is defined as a macro that takes an arg, the definition is seen as a use of a macro that takes an arg, to satisfy picky ANSI preprocessors. --- gdb/ChangeLog | 8 ++++++++ gdb/defs.h | 7 ++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 525bb8fce50..4494748b9ac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com) + + * remote.c (remote_wait): Fix cast on signal() call. + * defs.h (alloca): More diddling with alloca. Have to ensure + that it has a prototype, so that if alloca is defined as a macro + that takes an arg, the definition is seen as a use of a macro + that takes an arg, to satisfy picky ANSI preprocessors. + Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com) * sparc-pinsn.c: Use rather than "string.h", for diff --git a/gdb/defs.h b/gdb/defs.h index 779115894ea..a7f24580a0a 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -682,12 +682,9 @@ strerror PARAMS ((int)); /* 4.11.6.2 */ # define alloca __builtin_alloca # else # ifdef sparc -# include - extern char *alloca (); /* SPARC alloca.h doesn't declare damn thing */ -# endif -# ifndef alloca /* May be macro, with args, in */ - extern char *alloca (); +# include /* NOTE: Doesn't declare alloca() */ # endif + extern PTR alloca PARAMS ((size_t)); # endif #endif -- 2.30.2