From d9d124ef1581f8aabccb7beb002926ad9ac7a735 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 10 May 2012 09:01:40 +0200 Subject: [PATCH] am7xxx: MinGW does not have endian.h, provide fallbacks Provide fallbacks only for the functions used in the code, and assume Windows is always using little endian. --- src/serialize.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/serialize.c b/src/serialize.c index be300ea..72e3fd4 100644 --- a/src/serialize.c +++ b/src/serialize.c @@ -17,7 +17,13 @@ */ #include + +#ifdef __MINGW32__ +#define le32toh(x) (x) +#define htole32(x) (x) +#else #include +#endif #include "serialize.h" -- 2.1.4