about summary refs log tree commit diff
path: root/wcsmbs
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wcstold.c1
-rw-r--r--wcsmbs/wcstold_l.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/wcsmbs/wcstold.c b/wcsmbs/wcstold.c
index 89e8de8eb9..31bdb13724 100644
--- a/wcsmbs/wcstold.c
+++ b/wcsmbs/wcstold.c
@@ -18,6 +18,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <math.h>
+#include <wchar.h>
 
 #ifndef __NO_LONG_DOUBLE_MATH
 /* The actual implementation for all floating point sizes is in strtod.c.
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