From 564976b6095783d73849c51cf11e16b1a03483c4 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 1 Feb 2011 19:40:58 +0100 Subject: directsound: arrange for definition of _swab on Cygwin gstdirectsoundsink.c: In function 'gst_directsound_sink_write': gstdirectsoundsink.c:557: error: implicit declaration of function '_swab' gstdirectsoundsink.c:557: error: nested extern declaration of '_swab' --- sys/directsound/gstdirectsoundsink.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys') diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index e64c8ac38..462c41210 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -56,6 +56,13 @@ #include +#ifdef __CYGWIN__ +#include +#ifndef _swab +#define _swab swab +#endif +#endif + GST_DEBUG_CATEGORY_STATIC (directsoundsink_debug); #define GST_CAT_DEFAULT directsoundsink_debug -- cgit v1.2.3