From: James Turner Date: Mon, 22 Feb 2016 21:53:27 +0000 (+0200) Subject: Work around lack of endian.h on Windows X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4fb205b31745105df4460bdda1895d707ee84ada;p=simgear.git Work around lack of endian.h on Windows --- 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__