summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0a3c757..9027169 100644
--- a/main.c
+++ b/main.c
@@ -33,6 +33,10 @@
#include <assert.h>
#include <unistd.h>
+#if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
+#error "Big endian machines not supported yet"
+#endif
+
#define flip_block(TMP_VAR, TYPE, BUF, POS) \
TMP_VAR = *(TYPE *)&BUF[POS]; \
TMP_VAR = ~TMP_VAR; \