From: Antonio Ospite Date: Thu, 10 May 2012 07:01:40 +0000 (+0200) Subject: am7xxx: MinGW does not have endian.h, provide fallbacks X-Git-Tag: v0.1.3~37^2~7 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/d9d124ef1581f8aabccb7beb002926ad9ac7a735?ds=sidebyside;hp=2e98c1f8f71883805ba96e3691c692a568858ca9 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. --- 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"