projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e98c1f
)
am7xxx: MinGW does not have endian.h, provide fallbacks
author
Antonio Ospite <ospite@studenti.unina.it>
Thu, 10 May 2012 07:01:40 +0000
(09:01 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Thu, 10 May 2012 13:57:59 +0000
(15:57 +0200)
Provide fallbacks only for the functions used in the code, and assume
Windows is always using little endian.
src/serialize.c
patch
|
blob
|
history
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>
+
+#ifdef __MINGW32__
+#define le32toh(x) (x)
+#define htole32(x) (x)
+#else
#include <endian.h>
+#endif
#include "serialize.h"