Skip to content

Commit

Permalink
* stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 14, 2007
1 parent fc4819b commit 5e88abf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
10 changes: 9 additions & 1 deletion stdlib/strtold_l.c
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 5e88abf

Please sign in to comment.