]> git.saurik.com Git - apple/libc.git/blobdiff - include/xlocale/_stdlib.h
Libc-498.tar.gz
[apple/libc.git] / include / xlocale / _stdlib.h
index a511fddbfbcc0c2e56d91d326e6838c1aa1dd9df..494a917157556fbe422ee0eae5afb1fb21dae68b 100644 (file)
@@ -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_ */