1 diff -Naur --exclude=CVS freeimage-3.16.0_orig/Source/LibWebP/src/utils/bit_writer.c freeimage-3.16.0_patch/Source/LibWebP/src/utils/bit_writer.c
2 --- freeimage-3.16.0_orig/Source/LibWebP/src/utils/bit_writer.c
3 +++ freeimage-3.16.0_patch/Source/LibWebP/src/utils/bit_writer.c
5 #define htole16(x) (x)
\r
6 #else // pretty much all linux and/or glibc
\r
9 +# include <byteswap.h>
11 +/* Conversion interfaces. */
12 +#if __BYTE_ORDER == __LITTLE_ENDIAN
13 +#define htole16(x) (x)
14 +#define htole32(x) (x)
15 +#define htole64(x) (x)
17 +#define htole16(x) __bswap_16 (x)
18 +#define htole32(x) __bswap_32 (x)
19 +#define htole64(x) __bswap_64 (x)
25 // Returns 1 on success.
\r