diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-08-14 14:37:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-08-14 14:37:21 +0000 |
commit | 5e88abf945eeb5338c24a2021bd66650ed86e96f (patch) | |
tree | 591097d2f802850f75c1f05ec74af74076aa5d3c | |
parent | fc4819b0c0126c36a200bcd915ca34a4debabed5 (diff) | |
download | glibc-5e88abf945eeb5338c24a2021bd66650ed86e96f.tar.gz glibc-5e88abf945eeb5338c24a2021bd66650ed86e96f.tar.xz glibc-5e88abf945eeb5338c24a2021bd66650ed86e96f.zip |
* stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | stdlib/strtold_l.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 4646fc29d7..1795798ef0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def. + 2007-08-14 Ulrich Drepper <drepper@redhat.com> * po/bg.po: New file. From the translation team. diff --git a/stdlib/strtold_l.c b/stdlib/strtold_l.c index 690a8a92eb..2a77707996 100644 --- a/stdlib/strtold_l.c +++ b/stdlib/strtold_l.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2002, 2004, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,10 @@ #include <stdlib.h> #include <xlocale.h> +#if defined _LIBC || defined HAVE_WCHAR_H +# include <wchar.h> +#endif + #ifdef USE_WIDE_CHAR # define STRING_TYPE wchar_t # define STRTOLD wcstold_l @@ -55,4 +59,8 @@ __STRTOLD (const STRING_TYPE *nptr, STRING_TYPE **endptr, __locale_t loc) { return INTERNAL (__STRTOD) (nptr, endptr, 0, loc); } +#if defined _LIBC +libc_hidden_def (__STRTOLD) +libc_hidden_ver (__STRTOLD, STRTOLD) +#endif weak_alias (__STRTOLD, STRTOLD) |