From: Paul Eggert Date: Wed, 28 Jul 2004 22:21:33 +0000 (+0000) Subject: memchr and memrchr portability fixes. X-Git-Tag: v5.3.0~1040 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef6b50199e0cd1f9604731ca86d69a6338f588ac;p=thirdparty%2Fcoreutils.git memchr and memrchr portability fixes. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index bfcc4d095e..45dac2030c 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,13 @@ 2004-07-28 Paul Eggert + * memchr.c: Include , not and . + (LONG_MAX_32_BITS): Remove. + Include and if available. + (alignof, UNALIGNEDP): New macro, portable to all C89 hosts. + (__memchr): Don't assume unsigned long int is either 4 or 8 bytes; + let it be any number of bytes greater than or equal to 4. + * memrchr.c: Likewise, with __memrchr. + * md5.h: Include if HAVE_STDINT_H || _LIBC, not ifdef _LIBC. (md5_uint32): Use uint32_t if available. Simplify fallback ifdefs.