[Flac-dev] src/test_streams/main.c: swap16()

Christian Weisgerber naddy at mips.inka.de
Thu Oct 25 07:32:06 PDT 2001


OpenBSD defines a swap16() macro in <sys/endian.h> which propagates
through <sys/types.h> into <sys/time.h>.

--- src/test_streams/main.c.orig	Thu Oct 25 15:18:25 2001
+++ src/test_streams/main.c	Thu Oct 25 15:20:43 2001
@@ -38,6 +38,9 @@
 
 static FLAC__bool is_big_endian_host;
 
+#ifdef swap16
+#undef swap16
+#endif
 static void swap16(FLAC__int16 *i)
 {
 	unsigned char *x = (unsigned char *)i, b;
-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de




More information about the Flac-dev mailing list