From 9ac984660761e39d7545f4faea52f80f7af22a56 Mon Sep 17 00:00:00 2001 From: Chris E Ferron Date: Mon, 12 Nov 2012 10:31:23 -0800 Subject: [PATCH] lcms-endian --- include/lcms2.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/lcms2.h b/include/lcms2.h index a0ad4f1..81ada2c 100644 --- a/include/lcms2.h +++ b/include/lcms2.h @@ -30,8 +30,10 @@ // ********** Configuration toggles **************************************** -// Uncomment this one if you are using big endian machines -// #define CMS_USE_BIG_ENDIAN 1 +#include +#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. -- 2.7.4