projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
deb1fd4
)
src/io/sink_wavwrite.c: assume windows is little endian to build with mingw32
author
Paul Brossier
<piem@piem.org>
Sat, 31 Jan 2015 11:15:20 +0000
(12:15 +0100)
committer
Paul Brossier
<piem@piem.org>
Sat, 31 Jan 2015 11:15:20 +0000
(12:15 +0100)
src/io/sink_wavwrite.c
patch
|
blob
|
history
diff --git
a/src/io/sink_wavwrite.c
b/src/io/sink_wavwrite.c
index
4062a94
..
4c0e23d
100644
(file)
--- a/
src/io/sink_wavwrite.c
+++ b/
src/io/sink_wavwrite.c
@@
-44,8
+44,12
@@
#elif defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#define HTOLES(x) x
#else
#elif defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#define HTOLES(x) x
#else
+#ifdef HAVE_WIN_HACKS
+#define HTOLES(x) x
+#else
#define HTOLES(x) SWAPS(htons(x))
#endif
#define HTOLES(x) SWAPS(htons(x))
#endif
+#endif
uint_t aubio_sink_wavwrite_open(aubio_sink_wavwrite_t *s);
uint_t aubio_sink_wavwrite_open(aubio_sink_wavwrite_t *s);