blob: f80f5920ce02d848adb1b01defe59a1f732e6d58 [file] [log] [blame]
#ifndef LLVM_LIBCXX_SUPPORT_ANDROID_WCHAR_H
#define LLVM_LIBCXX_SUPPORT_ANDROID_WCHAR_H
#include_next <wchar.h>
#include <xlocale.h>
#ifdef __cplusplus
extern "C" {
#endif
// Add missing declarations that are not in the NDK.
float wcstof(const wchar_t*, wchar_t**);
long wcstol(const wchar_t* nptr, wchar_t**, int);
long double wcstold(const wchar_t*, wchar_t**);
long long wcstoll(const wchar_t*, wchar_t**, int);
unsigned long long wcstoull(const wchar_t*, wchar_t**, int);
extern size_t wcsnrtombs (char *dst,
const wchar_t **src,
size_t nwc, size_t len,
mbstate_t *ps);
extern size_t mbsnrtowcs (wchar_t *dst,
const char **src, size_t nmc,
size_t len, mbstate_t *ps);
int wcscoll_l(const wchar_t*, const wchar_t*, locale_t);
int wcsxfrm_l(wchar_t*, const wchar_t*, size_t, locale_t);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // LLVM_LIBCXX_SUPPORT_ANDROID_WCHAR_H