X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/c957a83bde4df2e2d3d1ed0963656856b48ef0a0..224c70764cab4e0e39a26aaf3ad3016552f62f55:/include/xlocale/_stdlib.h diff --git a/include/xlocale/_stdlib.h b/include/xlocale/_stdlib.h index a511fdd..494a917 100644 --- a/include/xlocale/_stdlib.h +++ b/include/xlocale/_stdlib.h @@ -37,8 +37,8 @@ size_t mbstowcs_l(wchar_t * __restrict , const char * __restrict, size_t, locale_t); int mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t, locale_t); -double strtod_l(const char *, char **, locale_t); -float strtof_l(const char *, char **, locale_t); +double strtod_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtod_l); +float strtof_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtof_l); long strtol_l(const char *, char **, int, locale_t); long double strtold_l(const char *, char **, locale_t) @@ -60,6 +60,11 @@ unsigned long long size_t wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t, locale_t); int wctomb_l(char *, wchar_t, locale_t); + +/* Poison the following routines if -fshort-wchar is set */ +#if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU +#pragma GCC poison mbstowcs_l mbtowc_l wcstombs_l wctomb_l +#endif __END_DECLS #endif /* _XLOCALE__STDLIB_H_ */