undef gets in case it's a macro

From Thierry Vignaud <tvignaud@mandrakesoft.com>:

from rh: undef gets in case it's a macro (see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141423)
This commit is contained in:
Takashi Iwai 2005-02-01 18:19:31 +00:00
parent e02c51a199
commit 180f51943e

View file

@ -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);
}
/**