ref: fdeba11f925b0f64e70d800179c184f876c42037
parent: deb1fd481a56f1ef979ff1d70b0e6ac6252a13ab
author: Paul Brossier <piem@piem.org>
date: Sat Jan 31 07:15:20 EST 2015
src/io/sink_wavwrite.c: assume windows is little endian to build with mingw32
--- a/src/io/sink_wavwrite.c
+++ b/src/io/sink_wavwrite.c
@@ -44,7 +44,11 @@
#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
#endif
uint_t aubio_sink_wavwrite_open(aubio_sink_wavwrite_t *s);