Always define prototypes in fallback.h, so that if the prototypes are missing in the libc headers, things will still work

darcs-hash:20060305212513-ac50b-11820bbcc4193d8588246848161909baf3726edf.gz
This commit is contained in:
axel 2006-03-06 07:25:13 +10:00
parent 15bb8f712d
commit c20b8982bc

View File

@ -24,8 +24,6 @@ int tputs(const char *str, int affcnt, int (*putc)(tputs_arg_t));
the prototype to appear. the prototype to appear.
*/ */
#if !HAVE_FWPRINTF
/** /**
Print formated string. Some operating systems (Like NetBSD) do not Print formated string. Some operating systems (Like NetBSD) do not
have wide string formating functions. Therefore we implement our have wide string formating functions. Therefore we implement our
@ -81,10 +79,6 @@ int vfwprintf( FILE *f, const wchar_t *filter, va_list va );
*/ */
int vswprintf( wchar_t *out, size_t n, const wchar_t *filter, va_list va ); int vswprintf( wchar_t *out, size_t n, const wchar_t *filter, va_list va );
#endif
#ifndef HAVE_FGETWC
/** /**
Fallback implementation of fgetwc Fallback implementation of fgetwc
*/ */
@ -95,10 +89,6 @@ wint_t fgetwc(FILE *stream);
*/ */
wint_t getwc(FILE *stream); wint_t getwc(FILE *stream);
#endif
#ifndef HAVE_FPUTWC
/** /**
Fallback implementation of fputwc Fallback implementation of fputwc
*/ */
@ -108,15 +98,11 @@ wint_t fputwc(wchar_t wc, FILE *stream);
*/ */
wint_t putwc(wchar_t wc, FILE *stream); wint_t putwc(wchar_t wc, FILE *stream);
#endif
#ifndef HAVE_WCSTOK
/** /**
Fallback implementation of wcstok. Uses code borrowed from glibc. Fallback implementation of wcstok. Uses code borrowed from glibc.
*/ */
wchar_t *wcstok(wchar_t *wcs, const wchar_t *delim, wchar_t **ptr); wchar_t *wcstok(wchar_t *wcs, const wchar_t *delim, wchar_t **ptr);
#endif
/** /**
Return the number of columns used by a character. This is a libc Return the number of columns used by a character. This is a libc