Fix build on OS X PowerPC platforms
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1396 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
1.4.0
|
||||
=====
|
||||
|
||||
[1] 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.90 (1.4 beta1)
|
||||
==================
|
||||
|
||||
|
||||
@@ -38,6 +38,15 @@ static void MD5Transform(unsigned int [4], const unsigned char [64]);
|
||||
#define Decode memcpy
|
||||
#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
|
||||
* a multiple of 4.
|
||||
|
||||
Reference in New Issue
Block a user