We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117161c commit a865812Copy full SHA for a865812
1 file changed
lib/libvarnish/vsha256.c
@@ -40,6 +40,14 @@
40
# define VBIG_ENDIAN __DARWIN_BIG_ENDIAN
41
#endif
42
43
+#ifndef VBYTE_ORDER
44
+# error VBYTE_ORDER not defined
45
+#endif
46
+#ifndef VBIG_ENDIAN
47
+# error VBIG_ENDIAN not defined
48
49
+
50
51
#include <sys/types.h>
52
#include <stdint.h>
53
#include <string.h>
@@ -50,7 +58,7 @@
58
#include "vend.h"
59
#include "vsha256.h"
60
-#if defined(VBYTE_ORDER) && VBYTE_ORDER == VBIG_ENDIAN
61
+#if VBYTE_ORDER == VBIG_ENDIAN
54
62
55
63
/* Copy a vector of big-endian uint32_t into a vector of bytes */
56
64
#define be32enc_vect(dst, src, len) \
0 commit comments