summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-26 21:35:38 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-26 21:35:38 +0000
commit521c0ad57966e99d423900a3f465be475aed5f50 (patch)
tree7267e574445213b8c59693e2746b0203a31718a1 /stdlib
parent1ff283cb468f66886da94cec4004e5fe7e6b6b5d (diff)
downloadglibc-521c0ad57966e99d423900a3f465be475aed5f50.tar.gz
glibc-521c0ad57966e99d423900a3f465be475aed5f50.tar.xz
glibc-521c0ad57966e99d423900a3f465be475aed5f50.zip
Update.
1999-02-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* wcsmbs/wcstold_l.c [__NO_LONG_DOUBLE_MATH]: Add prototype
	declaration for ____wcstod_l_internal.

	* stdlib/strtold.c [__NO_LONG_DOUBLE_MATH]: Include <stdlib.h> for
	__strtod_internal prototype.
	* stdlib/strtold_l.c [__NO_LONG_DOUBLE_MATH]
	(____strtold_l_internal): Add prototype declaration.
	(__strtold_l): Call correct function.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/strtold.c1
-rw-r--r--stdlib/strtold_l.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/stdlib/strtold.c b/stdlib/strtold.c
index c808efc744..f1bb2f1c0d 100644
--- a/stdlib/strtold.c
+++ b/stdlib/strtold.c
@@ -25,6 +25,7 @@
 
 # include "strtod.c"
 #else
+# include <stdlib.h>
 /* There is no `long double' type, use the `double' implementations.  */
 long double
 __strtold_internal (const char *nptr, char **endptr, int group)
diff --git a/stdlib/strtold_l.c b/stdlib/strtold_l.c
index ded819f989..8b4996df62 100644
--- a/stdlib/strtold_l.c
+++ b/stdlib/strtold_l.c
@@ -34,6 +34,8 @@ extern unsigned long long int ____strtoull_l_internal (const char *, char **,
 
 #else
 /* There is no `long double' type, use the `double' implementations.  */
+extern double ____strtod_l_internal (const char *, char **, int,
+				     __locale_t);
 long double
 ____strtold_l_internal (const char *nptr, char **endptr, int group,
 			__locale_t loc)
@@ -44,6 +46,6 @@ ____strtold_l_internal (const char *nptr, char **endptr, int group,
 long double
 __strtold_l (const char *nptr, char **endptr, __locale_t loc)
 {
-  return __strtod_internal (nptr, endptr, 0, loc);
+  return ____strtod_l_internal (nptr, endptr, 0, loc);
 }
 #endif