mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
gst: Fix compiler warnings on mingw-w64
https://bugzilla.gnome.org/show_bug.cgi?id=675525
This commit is contained in:
parent
86e0f4d145
commit
63234a9dab
5 changed files with 6 additions and 2 deletions
|
@ -72,7 +72,6 @@
|
|||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <winsock2.h>
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#else
|
||||
#define _GNU_SOURCE 1
|
||||
#ifdef HAVE_SYS_POLL_H
|
||||
|
|
|
@ -52,7 +52,9 @@
|
|||
# define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
|
||||
# include <windows.h> /* QueryPerformance* stuff */
|
||||
# undef WIN32_LEAN_AND_MEAN
|
||||
# ifndef EWOULDBLOCK
|
||||
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
|
||||
# endif
|
||||
#endif /* G_OS_WIN32 */
|
||||
|
||||
#define GET_ENTRY_STATUS(e) ((GstClockReturn) g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e)))
|
||||
|
|
|
@ -47,7 +47,9 @@
|
|||
#include <io.h> /* lseek, open, close, read */
|
||||
/* On win32, stat* default to 32 bit; we need the 64-bit
|
||||
* variants, so explicitly define it that way. */
|
||||
#undef stat
|
||||
#define stat __stat64
|
||||
#undef fstat
|
||||
#define fstat _fstat64
|
||||
#undef lseek
|
||||
#define lseek _lseeki64
|
||||
|
|
|
@ -404,6 +404,7 @@ GST_START_TEST (test_uri_interface)
|
|||
|
||||
GST_END_TEST;
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
static void
|
||||
check_uri_for_uri (GstElement * e, const gchar * in_uri, const gchar * uri)
|
||||
{
|
||||
|
@ -459,6 +460,7 @@ check_uri_for_location (GstElement * e, const gchar * location,
|
|||
|
||||
g_free (query_uri);
|
||||
}
|
||||
#endif
|
||||
|
||||
GST_START_TEST (test_uri_query)
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#ifdef G_OS_WIN32
|
||||
#include <winsock2.h>
|
||||
#include <fcntl.h>
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#else
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue