From 9f10d7dffc3c593bfd46b3f19923aa1000382c9f Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Fri, 20 Dec 2013 16:43:53 +0100 Subject: [PATCH] check for __BIG_ENDIAN__ rather than for __BYTE_ORDER__ and include board.h --- sys/crypto/sha256/sha256.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/crypto/sha256/sha256.c b/sys/crypto/sha256/sha256.c index 3bd2e5017e..1c915f5386 100644 --- a/sys/crypto/sha256/sha256.c +++ b/sys/crypto/sha256/sha256.c @@ -44,15 +44,16 @@ #include <string.h> #include "crypto/sha256.h" +#include "board.h" -#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#ifdef __BIG_ENDIAN__ /* Copy a vector of big-endian uint32_t into a vector of bytes */ #define be32enc_vect memcpy /* Copy a vector of bytes into a vector of big-endian uint32_t */ #define be32dec_vect memcpy -#else /* __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__ */ +#else /* !__BIG_ENDIAN__ */ /* * Encode a length len/4 vector of (uint32_t) into a length len vector of -- GitLab