$OpenBSD: patch-src_main_print-olympus_c,v 1.3 2017/07/17 08:17:10 ajacoutot Exp $

error: #error "Unable to determine endianness, aborting compilation!"

Index: src/main/print-olympus.c
--- src/main/print-olympus.c.orig
+++ src/main/print-olympus.c
@@ -46,6 +46,16 @@
 //#define S6145_YMC
 //#define CANONSELPHYNEO_CMY
 
+#ifndef __BYTE_ORDER
+#define __BYTE_ORDER _BYTE_ORDER
+#endif
+#ifndef __BIG_ENDIAN
+#define __BIG_ENDIAN _BIG_ENDIAN
+#endif
+#ifndef __LITTLE_ENDIAN
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#endif
+
 #define DYESUB_FEATURE_NONE		 0x00000000
 #define DYESUB_FEATURE_FULL_WIDTH	 0x00000001
 #define DYESUB_FEATURE_FULL_HEIGHT	 0x00000002
