diff options
author | Michael Meissner <gnu@the-meissners.org> | 1997-03-28 20:48:12 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1997-03-28 20:48:12 +0000 |
commit | 8902803f752535d841d0f94202a9a59334e27182 (patch) | |
tree | 0c465d86df02e135d469a4316a1d0417255c9716 /include/callback.h | |
parent | b26ac9e1e8e06d070cc6a23d1f60b926c326243d (diff) | |
download | gdb-8902803f752535d841d0f94202a9a59334e27182.zip gdb-8902803f752535d841d0f94202a9a59334e27182.tar.gz gdb-8902803f752535d841d0f94202a9a59334e27182.tar.bz2 |
Fix faulty assumption that va_list is a pointer type
Diffstat (limited to 'include/callback.h')
-rw-r--r-- | include/callback.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/callback.h b/include/callback.h index 944a1b7..b2a7fe2 100644 --- a/include/callback.h +++ b/include/callback.h @@ -20,6 +20,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef CALLBACK_H #define CALLBACK_H +#ifndef va_start +#include <ansidecl.h> +#ifdef ANSI_PROTOTYPES +#include <stdarg.h> +#else +#include <varargs.h> +#endif +#endif + typedef struct host_callback_struct host_callback; #define MAX_CALLBACK_FDS 10 @@ -53,10 +62,10 @@ struct host_callback_struct /* Talk to the user on a console. The `void *' is actually `va_list *'. */ - void (*vprintf_filtered) PARAMS ((host_callback *, const char *, void *)); + void (*vprintf_filtered) PARAMS ((host_callback *, const char *, va_list)); /* Same as vprintf_filtered but to stderr. */ - void (*evprintf_filtered) PARAMS ((host_callback *, const char *, void *)); + void (*evprintf_filtered) PARAMS ((host_callback *, const char *, va_list)); /* Print an error message and "exit". In the case of gdb "exiting" means doing a longjmp back to the main |