about summary refs log tree commit diff
path: root/wcsmbs/wcstold_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcstold_l.c')
-rw-r--r--wcsmbs/wcstold_l.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/wcsmbs/wcstold_l.c b/wcsmbs/wcstold_l.c
index 8f6272561c..aad55b1727 100644
--- a/wcsmbs/wcstold_l.c
+++ b/wcsmbs/wcstold_l.c
@@ -22,10 +22,11 @@
 #include <math.h>
 #include <stddef.h>
 #include <locale.h>
+#include "wchar.h"
 
-#ifndef __NO_LONG_DOUBLE_MATH
+#define USE_IN_EXTENDED_LOCALE_MODEL	1
 
-# define USE_IN_EXTENDED_LOCALE_MODEL	1
+#ifndef __NO_LONG_DOUBLE_MATH
 
 extern long double ____wcstold_l_internal (const wchar_t *, wchar_t **, int,
 					   __locale_t);
@@ -46,6 +47,6 @@ ____wcstold_l_internal (const wchar_t *nptr, wchar_t **endptr, int group,
 long double
 __wcstold_l (const wchar_t *nptr, wchar_t **endptr, __locale_t loc)
 {
-  return __wcstod_internal (nptr, endptr, 0, loc);
+  return ____wcstod_l_internal (nptr, endptr, 0, loc);
 }
 #endif