summaryrefslogtreecommitdiffstats
path: root/osdep/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/endian.h')
-rw-r--r--osdep/endian.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/osdep/endian.h b/osdep/endian.h
index b600f1c281..c6d13760ea 100644
--- a/osdep/endian.h
+++ b/osdep/endian.h
@@ -28,4 +28,10 @@
#endif /* !defined(BYTE_ORDER) */
+#if BYTE_ORDER == BIG_ENDIAN
+#define MP_SELECT_LE_BE(LE, BE) BE
+#else
+#define MP_SELECT_LE_BE(LE, BE) LE
+#endif
+
#endif