Skip to content

Commit

Permalink
elax some conditions in stdlib.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 15, 2010
1 parent 402cd98 commit c589e09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2010-01-14 Ulrich Drepper <drepper@redhat.com>

* stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.

* Versions.def: Add GLIBC_2.12 for libpthread.

[BZ #11126]
Expand Down
8 changes: 4 additions & 4 deletions stdlib/stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ extern void cfree (void *__ptr) __THROW;
# include <alloca.h>
#endif /* Use GNU, BSD, or misc. */

#if ((defined __USE_BSD || defined __USE_XOPEN_EXTENDED) \
&& !defined __USE_XOPEN2K) || defined __USE_GNU
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) \
|| defined __USE_BSD
/* Allocate SIZE bytes on a page boundary. The storage cannot be freed. */
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
#endif
Expand Down Expand Up @@ -797,8 +797,8 @@ __END_NAMESPACE_C99
#endif


#if ((defined __USE_SVID || defined __USE_XOPEN_EXTENDED) \
&& !defined __USE_XOPEN2K) || defined __USE_GNU
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) \
|| defined __USE_SVID
/* Convert floating point numbers to strings. The returned values are
valid only until another call to the same function. */

Expand Down

0 comments on commit c589e09

Please sign in to comment.