]> git.alsa-project.org Git - alsa-lib.git/commitdiff
undef gets in case it's a macro
authorTakashi Iwai <tiwai@suse.de>
Tue, 1 Feb 2005 18:19:31 +0000 (18:19 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 1 Feb 2005 18:19:31 +0000 (18:19 +0000)
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)

src/input.c

index 274aea7e05b0754212305a80ccea158bc9546c92..3276668e444567335da591bb64fefe081e643dd4 100644 (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);
 }
                        
 /**