From 7f98341a21f2d1b445689e41062a80f9397e84c2 Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 25 Feb 2020 19:39:08 +0300 Subject: [PATCH] the build fixed for msvc --- src/common/int-util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/common/int-util.h b/src/common/int-util.h index b60c7d97..dde4e01f 100644 --- a/src/common/int-util.h +++ b/src/common/int-util.h @@ -16,6 +16,17 @@ #include #include +#if !defined(__ORDER_LITTLE_ENDIAN__) +#define __ORDER_LITTLE_ENDIAN__ 1011012001 +#endif + +#if !defined(__BYTE_ORDER__) +#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ +#endif + +#if !defined(__ORDER_BIG_ENDIAN__) +#define __ORDER_BIG_ENDIAN__ 0 +#endif static inline uint32_t rol32(uint32_t x, int r) { static_assert(sizeof(uint32_t) == sizeof(unsigned int), "this code assumes 32-bit integers");