Loading...
include/xlocale/_stdlib.h Libc-391 Libc-763.13
--- Libc/Libc-391/include/xlocale/_stdlib.h
+++ Libc/Libc-763.13/include/xlocale/_stdlib.h
@@ -37,8 +37,8 @@
 	    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 @@
 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_ */