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'
This commit is contained in:
Mark Nauwelaerts 2011-02-01 19:40:58 +01:00
parent 8a7a327db7
commit 564976b609

View file

@ -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