diff --git a/include/common.h b/include/common.h index 64958a1ee..7291f749c 100644 --- a/include/common.h +++ b/include/common.h @@ -16,6 +16,10 @@ #error Your Operating System is not supported or detected #endif +#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#error "compiling for big-endian architecture not supported" +#endif + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif