comparison configure @ 30177:c02b833051a7

Pass a proper va_list type to vsscanf() test in configure. This fixes the check on SuperH with CodeSourcery compilers. patch by Bill Traynor, wmat naoi ca
author diego
date Mon, 04 Jan 2010 21:57:13 +0000
parents 9c96c5a55b3e
children 79d654423b9a
comparison
equal deleted inserted replaced
30176:6fb92182aff3 30177:c02b833051a7
3743 echocheck "vsscanf()" 3743 echocheck "vsscanf()"
3744 cat > $TMPC << EOF 3744 cat > $TMPC << EOF
3745 #define _ISOC99_SOURCE 3745 #define _ISOC99_SOURCE
3746 #include <stdarg.h> 3746 #include <stdarg.h>
3747 #include <stdio.h> 3747 #include <stdio.h>
3748 int main(void) { vsscanf(0, 0, 0); return 0; } 3748 int main(void) { va_list ap; vsscanf(0, 0, ap); return 0; }
3749 EOF 3749 EOF
3750 _vsscanf=no 3750 _vsscanf=no
3751 cc_check && _vsscanf=yes 3751 cc_check && _vsscanf=yes
3752 if test "$_vsscanf" = yes ; then 3752 if test "$_vsscanf" = yes ; then
3753 def_vsscanf='#define HAVE_VSSCANF 1' 3753 def_vsscanf='#define HAVE_VSSCANF 1'