Okay, it was easier than thought. Attached the patch which should detect the endian for GNU C systems and set the preprocessor variable.
-- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/7c4ae9d3-a6b5-4351-a577-65c2a44575ean%40googlegroups.com.
diff -r a97fddc5a031 panorama.h --- a/panorama.h Sat Oct 30 14:37:57 2021 +0200 +++ b/panorama.h Mon Nov 01 20:49:45 2021 +0100 @@ -45,6 +45,12 @@ // If you need PT_BIGENDIAN, and don't use MacOS, define it here: //#define PT_BIGENDIAN 1 +#ifdef __GNUC__ +#include <endian.h> +#if __BYTE_ORDER == __BIG_ENDIAN +#define PT_BIGENDIAN 1 +#endif +#endif typedef unsigned char Boolean;
