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:
parent
ec48f10656
commit
53da4b3028
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue