projects
/
platform
/
upstream
/
lcms2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910e075
)
lcms-endian
author
Chris E Ferron
<chris.e.ferron@linux.intel.com>
Mon, 12 Nov 2012 18:31:23 +0000
(10:31 -0800)
committer
Anas Nashif
<anas.nashif@intel.com>
Thu, 21 Feb 2013 03:04:46 +0000
(19:04 -0800)
include/lcms2.h
patch
|
blob
|
history
diff --git
a/include/lcms2.h
b/include/lcms2.h
index
a0ad4f1
..
81ada2c
100644
(file)
--- 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 <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.