src/io/sink_wavwrite.c: assume windows is little endian to build with mingw32
[aubio.git] / src / io / sink_wavwrite.c
index 4062a94..4c0e23d 100644 (file)
 #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);