1 // -*- C++ -*- 2 //===-------------------- support/android/wchar_support.c ------------------===// 3 // 4 // The LLVM Compiler Infrastructure 5 // 6 // This file is dual licensed under the MIT and the University of Illinois Open 7 // Source Licenses. See LICENSE.TXT for details. 8 // 9 //===----------------------------------------------------------------------===// 10 11 #ifndef LLVM_LIBCXX_SUPPORT_ANDROID_STDLIB_H 12 #define LLVM_LIBCXX_SUPPORT_ANDROID_STDLIB_H 13 14 #include_next <stdlib.h> 15 #include <xlocale.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 long long strtoll(const char*, char**, int); 22 long double strtold(const char*, char**); 23 void _Exit(int); 24 25 long strtol_l(const char *nptr, char **endptr, int base, locale_t loc); 26 long long strtoll_l(const char *nptr, char **endptr, int base, locale_t loc); 27 unsigned long strtoul_l(const char *nptr, char **endptr, int base, locale_t loc); 28 unsigned long long strtoull_l(const char *nptr, char **endptr, int base, locale_t loc); 29 long double strtold_l (const char *nptr, char **endptr, locale_t loc); 30 31 int mbtowc(wchar_t *pwc, const char *pmb, size_t max); 32 33 #ifdef __cplusplus 34 } // extern "C" 35 #endif 36 37 #endif // LLVM_LIBCXX_SUPPORT_ANDROID_STDLIB_H 38