summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-05-05 12:55:09 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-05-05 13:48:14 +0200
commit92a67fc9c93e7820a96f9ae188c67584831a9269 (patch)
treedfee427a548970de6d040018983aed887731f6fa /scripts
parentb72d283cee2eafdfff8fdef4656cf2cde539d535 (diff)
downloadmupdf-92a67fc9c93e7820a96f9ae188c67584831a9269.tar.xz
Fix 695105: openjpeg configuration for big-endian.
Stupid unportable code needs stupid unportable preprocessor macros. This only works with GCC, but should be good enough since I expect anyone using a big-endian machine to also use a GCC compatible compiler.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/openjpeg/opj_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/openjpeg/opj_config.h b/scripts/openjpeg/opj_config.h
index 647fe3b8..bd0babed 100644
--- a/scripts/openjpeg/opj_config.h
+++ b/scripts/openjpeg/opj_config.h
@@ -16,3 +16,6 @@
* ==== YOU CAN NOT COMPILE WITHOUT IT. ====
* === DO NOT FORGET TO CHANGE 'config.nix' APPROPRIATELY. ====
*/
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define OPJ_BIG_ENDIAN 1
+#endif