From 082e28b8eba65c09380f3117d2f71016050c560a Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Sun, 17 Sep 2023 21:04:46 -0400 Subject: Ensure little endian Signed-off-by: sigsegv7 --- main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 0a3c757..9027169 100644 --- a/main.c +++ b/main.c @@ -33,6 +33,10 @@ #include #include +#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; \ -- cgit v1.2.3