gst: Fix compiler warnings on mingw-w64

https://bugzilla.gnome.org/show_bug.cgi?id=675525
This commit is contained in:
Raimo Järvi 2012-05-05 22:17:43 +03:00 committed by Sebastian Dröge
parent 86e0f4d145
commit 63234a9dab
5 changed files with 6 additions and 2 deletions

View file

@ -72,7 +72,6 @@
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
#include <winsock2.h> #include <winsock2.h>
#define EINPROGRESS WSAEINPROGRESS
#else #else
#define _GNU_SOURCE 1 #define _GNU_SOURCE 1
#ifdef HAVE_SYS_POLL_H #ifdef HAVE_SYS_POLL_H

View file

@ -52,7 +52,9 @@
# define WIN32_LEAN_AND_MEAN /* prevents from including too many things */ # define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
# include <windows.h> /* QueryPerformance* stuff */ # include <windows.h> /* QueryPerformance* stuff */
# undef WIN32_LEAN_AND_MEAN # undef WIN32_LEAN_AND_MEAN
# ifndef EWOULDBLOCK
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */ # define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
# endif
#endif /* G_OS_WIN32 */ #endif /* G_OS_WIN32 */
#define GET_ENTRY_STATUS(e) ((GstClockReturn) g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e))) #define GET_ENTRY_STATUS(e) ((GstClockReturn) g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e)))

View file

@ -47,7 +47,9 @@
#include <io.h> /* lseek, open, close, read */ #include <io.h> /* lseek, open, close, read */
/* On win32, stat* default to 32 bit; we need the 64-bit /* On win32, stat* default to 32 bit; we need the 64-bit
* variants, so explicitly define it that way. */ * variants, so explicitly define it that way. */
#undef stat
#define stat __stat64 #define stat __stat64
#undef fstat
#define fstat _fstat64 #define fstat _fstat64
#undef lseek #undef lseek
#define lseek _lseeki64 #define lseek _lseeki64

View file

@ -404,6 +404,7 @@ GST_START_TEST (test_uri_interface)
GST_END_TEST; GST_END_TEST;
#ifdef G_OS_UNIX
static void static void
check_uri_for_uri (GstElement * e, const gchar * in_uri, const gchar * uri) 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); g_free (query_uri);
} }
#endif
GST_START_TEST (test_uri_query) GST_START_TEST (test_uri_query)
{ {

View file

@ -26,7 +26,6 @@
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
#include <winsock2.h> #include <winsock2.h>
#include <fcntl.h> #include <fcntl.h>
#define EINPROGRESS WSAEINPROGRESS
#else #else
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif