libarchive: Declare mbstate_t and wcrtomb for Borland

The Borland C++ 5.81 runtime library provides wcrtomb but only the
C++ header <cwchar> actually declares the API.
This commit is contained in:
Brad King 2011-12-20 14:28:32 -05:00
parent ec48f10656
commit 53da4b3028
1 changed files with 4 additions and 0 deletions

View File

@ -271,5 +271,9 @@ extern wchar_t *__la_win_permissive_name_w(const wchar_t *wname);
extern void __la_dosmaperr(unsigned long e); extern void __la_dosmaperr(unsigned long e);
#define la_dosmaperr(e) __la_dosmaperr(e) #define la_dosmaperr(e) __la_dosmaperr(e)
#if defined(HAVE_WCRTOMB) && defined(__BORLANDC__)
typedef int mbstate_t;
size_t wcrtomb(char *, wchar_t, mbstate_t *);
#endif
#endif /* LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED */ #endif /* LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED */