Fix build on OS X PowerPC platforms
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1397 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -25,6 +25,9 @@ test program specifically designed to make the bug occur (by injecting random
|
|||||||
high-frequency YUV data into the compressor), it was reproducible only once in
|
high-frequency YUV data into the compressor), it was reproducible only once in
|
||||||
about every 25 million iterations.
|
about every 25 million iterations.
|
||||||
|
|
||||||
|
[6] Fixed a build issue on OS X PowerPC platforms (md5cmp failed to build
|
||||||
|
because OS X does not provide the le32toh() and htole32() functions.)
|
||||||
|
|
||||||
|
|
||||||
1.3.1
|
1.3.1
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -38,6 +38,15 @@ static void MD5Transform(unsigned int [4], const unsigned char [64]);
|
|||||||
#define Decode memcpy
|
#define Decode memcpy
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/*
|
||||||
|
* OS X doesn't have le32toh() or htole32()
|
||||||
|
*/
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <libkern/OSByteOrder.h>
|
||||||
|
#define le32toh(x) OSSwapLittleToHostInt32(x)
|
||||||
|
#define htole32(x) OSSwapHostToLittleInt32(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Encodes input (unsigned int) into output (unsigned char). Assumes len is
|
* Encodes input (unsigned int) into output (unsigned char). Assumes len is
|
||||||
* a multiple of 4.
|
* a multiple of 4.
|
||||||
|
|||||||
Reference in New Issue
Block a user