localcharset.c: In function `get_charset_aliases':

Gansser, Martin MGansser@rand.de
Thu, 15 Aug 2002 15:26:43 +0200


> Gansser, Martin wrote:
>=20
> >>Err... are you sure this is a real solution? Now you have=20
> an implicit=20
> >>function declaration during your compile (which doesn't=20
> give an error=20
> >>anymore once you removed that compile option). IMHO implictly=20
> >>declared functions are highly likely to be a BAD THING=20
> (tm), and solving this=20
> >>problem rather means finding the right header file where that=20
> >>function is declared.
> >>
> >>How about a 'grep getc_unlocked /usr/include/*.h' or the=20
> >>other favorite locations for header-files?
> >>
> >=20
> > here the output:
> >=20
> > # grep getc_unlocked /usr/include/*.h
> >=20
> > /usr/include/stdio.h:       extern int getc_unlocked(__FILE *);
> > /usr/include/stdio.h:       extern int getc_unlocked();
> > /usr/include/stdio.h:#     define getc_unlocked(__p)=20=20=20=20=20=20=
=20=20
>     (--(__p)->__cnt >=3D 0 ? \
> > /usr/include/stdio.h:#     define getchar_unlocked()=20=20=20=20=20=20=
=20=20
>     getc_unlocked(stdin)
> > /usr/include/stdio.h:#       define getc(__p)=20=20=20=20=20=20=20=20=
=20=20=20
> getc_unlocked(__p)
> > /usr/include/stdio.h:     extern int ungetc_unlocked(int, __FILE *);
> > /usr/include/stdio.h:     extern int ungetc_unlocked();
> >=20
> > now what should I do .. include ...
>=20
>=20
> Does the file gnucash-1.6.7/intl/localcharset.c have a line
> '#include <stdio.h>' ? If not, you might consider just adding=20
> this, and then the compile should run.

yes, '#include <stdio.h>' is already included in localcharset.c

Martin