lcms-endian
authorChris E Ferron <chris.e.ferron@linux.intel.com>
Mon, 12 Nov 2012 18:31:23 +0000 (10:31 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 21 Feb 2013 03:04:46 +0000 (19:04 -0800)
include/lcms2.h

index a0ad4f1..81ada2c 100644 (file)
 
 // ********** Configuration toggles ****************************************
 
-// Uncomment this one if you are using big endian machines
-// #define CMS_USE_BIG_ENDIAN   1
+#include <endian.h>
+#if __BYTE_ORDER == __BIG_ENDIAN
+#define USE_BIG_ENDIAN   1
+#endif
 
 // Uncomment this one if your compiler/machine does NOT support the
 // "long long" type.