commit 707202acff8dba50e2d86905963c6284402b0831
parent 5ec9cae7df76a48adf8f77a4d0f275c8b8501c26
Author: Kyle Milz <krwmilz@gmail.com>
Date: Sat, 28 Aug 2021 14:37:57 +0000
Use preprocessor test for endianness
Before, autoconf was used to determine platform endianness. Replace
that with a preprocessor test instead.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/xdvi.h b/xdvi.h
@@ -52,6 +52,10 @@ NOTE:
#include <X11/Intrinsic.h>
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define WORDS_BIGENDIAN 1
+#endif
+
#if EXTRA_APP_DEFAULTS && !SELFAUTO
#define SELFAUTO 1
#endif