mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
8a7a327db7
commit
564976b609
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue