Skip to content

Commit

Permalink
Relax onditions in strings.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 15, 2010
1 parent c589e09 commit cd5c5f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2010-01-14 Ulrich Drepper <drepper@redhat.com>

* string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
index, and rindex.

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

* Versions.def: Add GLIBC_2.12 for libpthread.
Expand Down
4 changes: 2 additions & 2 deletions string/strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

__BEGIN_DECLS

# if !defined __USE_XOPEN2K8 || defined __USE_GNU
# if defined __USE_MISC || !defined __USE_XOPEN2K8
/* Compare N bytes of S1 and S2 (same as memcmp). */
extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
__THROW __attribute_pure__;
Expand Down Expand Up @@ -104,7 +104,7 @@ extern char *rindex (__const char *__s, int __c)
# endif
# endif

#if !defined __USE_XOPEN2K8 || defined __USE_XOPEN2K8XSI
#if defined __USE_MISC || !defined __USE_XOPEN2K8 || defined __USE_XOPEN2K8XSI
/* Return the position of the first bit set in I, or 0 if none are set.
The least-significant bit is position 1, the most-significant 32. */
extern int ffs (int __i) __THROW __attribute__ ((const));
Expand Down

0 comments on commit cd5c5f7

Please sign in to comment.