Mercurial > emacs
diff src/md5.c @ 109732:470bed744331
Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition.
* m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
* m/amdx86-64.h: Likewise.
* m/arm.h: Likewise.
* m/hp800.h: Likewise.
* m/ia64.h: Likewise.
* m/ibmrs6000.h: Likewise.
* m/ibms390.h: Likewise.
* m/intel386.h: Likewise.
* m/iris4d.h: Likewise.
* m/m68k.h: Likewise.
* m/macppc.h: Likewise.
* m/mips.h: Likewise.
* m/sh3.h: Likewise.
* m/sparc.h: Likewise.
* m/template.h: Likewise.
* m/vax.h: Likewise.
* m/xtensa.h: Likewise.
* fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
WORDS_BIG_ENDIAN.
* lisp.h: Likewise.
* md5.c: Likewise.
* sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
* CPP-DEFINES (WORDS_BIG_ENDIAN): Remove.
* configure.in: Add AC_C_BIGENDIAN.
| author | Andreas Schwab <schwab@linux-m68k.org> |
|---|---|
| date | Mon, 09 Aug 2010 21:25:41 +0200 |
| parents | aec1143e8d85 |
| children | ef719132ddfa |
line wrap: on
line diff
--- a/src/md5.c Mon Aug 09 14:05:56 2010 -0400 +++ b/src/md5.c Mon Aug 09 21:25:41 2010 +0200 @@ -1,7 +1,7 @@ /* Functions to compute MD5 message digest of files or memory blocks. according to the definition of MD5 in RFC 1321 from April 1992. Copyright (C) 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007 Free Software Foundation, Inc. + 2005, 2006, 2007, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -40,7 +40,7 @@ #ifdef _LIBC # include <endian.h> # if __BYTE_ORDER == __BIG_ENDIAN -# define WORDS_BIG_ENDIAN 1 +# define WORDS_BIGENDIAN 1 # endif /* We need to keep the namespace clean so define the MD5 function protected using leading __ . */ @@ -55,7 +55,7 @@ #include "md5.h" -#ifdef WORDS_BIG_ENDIAN +#ifdef WORDS_BIGENDIAN # define SWAP(n) \ (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24)) #else
