blob: 2c6b745c4c658196d543168d3814437081f83336 [file] [log] [blame]
// -*- C++ -*-
//===-------------------- support/android/wchar_support.c ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#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