diff --git a/lib/libvarnish/vsha256.c b/lib/libvarnish/vsha256.c index 6b6f756cb3..7e55ec3ad5 100644 --- a/lib/libvarnish/vsha256.c +++ b/lib/libvarnish/vsha256.c @@ -40,6 +40,14 @@ # define VBIG_ENDIAN __DARWIN_BIG_ENDIAN #endif +#ifndef VBYTE_ORDER +# error VBYTE_ORDER not defined +#endif +#ifndef VBIG_ENDIAN +# error VBIG_ENDIAN not defined +#endif + + #include #include #include @@ -50,7 +58,7 @@ #include "vend.h" #include "vsha256.h" -#if defined(VBYTE_ORDER) && VBYTE_ORDER == VBIG_ENDIAN +#if VBYTE_ORDER == VBIG_ENDIAN /* Copy a vector of big-endian uint32_t into a vector of bytes */ #define be32enc_vect(dst, src, len) \