projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
am7xxx: add a msleep() implementation in tools.[ch]
[libam7xxx.git]
/
src
/
serialize.c
diff --git
a/src/serialize.c
b/src/serialize.c
index
be300ea
..
72e3fd4
100644
(file)
--- a/
src/serialize.c
+++ b/
src/serialize.c
@@
-17,7
+17,13
@@
*/
#include <string.h>
*/
#include <string.h>
+
+#ifdef __MINGW32__
+#define le32toh(x) (x)
+#define htole32(x) (x)
+#else
#include <endian.h>
#include <endian.h>
+#endif
#include "serialize.h"
#include "serialize.h"