summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-01 19:40:58 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-01 20:11:06 +0100
commit564976b6095783d73849c51cf11e16b1a03483c4 (patch)
tree04cce4fa2f80e1ca40b4752ad64bf7d3e00d24d2 /sys
parent8a7a327db7dd0e677844599f4a0db76a7d06b512 (diff)
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'
Diffstat (limited to 'sys')
-rw-r--r--sys/directsound/gstdirectsoundsink.c7
1 files changed, 7 insertions, 0 deletions
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 <math.h>
+#ifdef __CYGWIN__
+#include <unistd.h>
+#ifndef _swab
+#define _swab swab
+#endif
+#endif
+
GST_DEBUG_CATEGORY_STATIC (directsoundsink_debug);
#define GST_CAT_DEFAULT directsoundsink_debug