From 4fb205b31745105df4460bdda1895d707ee84ada Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 22 Feb 2016 23:53:27 +0200 Subject: [PATCH] Work around lack of endian.h on Windows --- simgear/misc/sha1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simgear/misc/sha1.c b/simgear/misc/sha1.c index 047845b7..3fce9047 100644 --- a/simgear/misc/sha1.c +++ b/simgear/misc/sha1.c @@ -15,6 +15,8 @@ # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ # define SHA_BIG_ENDIAN # endif +#elif defined _WIN32 +/* assume little-endian, there is no endian.h on MSVC */ #else // ! defined __LITTLE_ENDIAN__ # include // machine/endian.h # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -- 2.39.5