File libXMP-auto-endian.diff of Package libXMP4_4

Index: XMP-Toolkit-SDK-4.4.2/source/common/EndianUtils.hpp
===================================================================
--- XMP-Toolkit-SDK-4.4.2.orig/source/common/EndianUtils.hpp
+++ XMP-Toolkit-SDK-4.4.2/source/common/EndianUtils.hpp
@@ -17,9 +17,17 @@
 // *** May want to improve with PowerPC swapping load/store, or SSE instructions.
 
 // =================================================================================================
 
+#include <endian.h>
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+# define kBigEndianHost 0
+#else
+# define kBigEndianHost 1
+#endif
+
 #define kLittleEndianHost (! kBigEndianHost)
+
 #if XMP_WinBuild
 	#pragma warning ( disable : 4127 )	// conditional expression is constant
 	#define kBigEndianHost 0
 #elif XMP_MacBuild