From 92a67fc9c93e7820a96f9ae188c67584831a9269 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 5 May 2014 12:55:09 +0200 Subject: 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. --- scripts/openjpeg/opj_config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/openjpeg') 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 -- cgit v1.2.3