summaryrefslogtreecommitdiff
path: root/wcsmbs/wcstof.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcstof.c')
-rw-r--r--wcsmbs/wcstof.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wcsmbs/wcstof.c b/wcsmbs/wcstof.c
index f410e4cf32..38cd95a4e1 100644
--- a/wcsmbs/wcstof.c
+++ b/wcsmbs/wcstof.c
@@ -22,8 +22,12 @@
These macros tell it to produce the `float' version, `wcstof'. */
#define FLOAT float
-#define FLT LDBL
-#define STRTOF wcstof
+#define FLT FLT
+#ifdef USE_IN_EXTENDED_LOCALE_MODEL
+# define STRTOF __wcstof_l
+#else
+# define STRTOF wcstof
+#endif
#define MPN2FLOAT __mpn_construct_float
#define FLOAT_HUGE_VAL HUGE_VALF
#define USE_WIDE_CHAR 1