From 180f51943e829de91b0a2de3a7f249faf107bb6a Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 1 Feb 2005 18:19:31 +0000 Subject: [PATCH] undef gets in case it's a macro From Thierry Vignaud : from rh: undef gets in case it's a macro (see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141423) --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input.c b/src/input.c index 274aea7e..3276668e 100644 --- a/src/input.c +++ b/src/input.c @@ -38,7 +38,7 @@ typedef struct _snd_input_ops { int (*close)(snd_input_t *input); int (*scan)(snd_input_t *input, const char *format, va_list args); - char *(*gets)(snd_input_t *input, char *str, size_t size); + char *(*(gets))(snd_input_t *input, char *str, size_t size); int (*getch)(snd_input_t *input); int (*ungetch)(snd_input_t *input, int c); } snd_input_ops_t; @@ -93,7 +93,7 @@ int snd_input_scanf(snd_input_t *input, const char *format, ...) */ char *snd_input_gets(snd_input_t *input, char *str, size_t size) { - return input->ops->gets(input, str, size); + return (input->ops->gets)(input, str, size); } /** -- 2.47.1