git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1397
632fc199-4ca6-4c93-a231-
07263d6284db
high-frequency YUV data into the compressor), it was reproducible only once in
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
=====
#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.