]> git.mxchange.org Git - simgear.git/commitdiff
Work around lack of endian.h on Windows
authorJames Turner <zakalawe@mac.com>
Mon, 22 Feb 2016 21:53:27 +0000 (23:53 +0200)
committerJames Turner <zakalawe@mac.com>
Mon, 22 Feb 2016 21:53:27 +0000 (23:53 +0200)
simgear/misc/sha1.c

index 047845b7445e3eede77b6aefbdf083822c03d745..3fce90478090b2569ec51f79332366fe6d86d267 100644 (file)
@@ -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 <endian.h> // machine/endian.h
 # if __BYTE_ORDER__ ==  __ORDER_BIG_ENDIAN__