From 39850d674eb12de4c181010d37c5d9df655bfd52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 1 Mar 2009 20:11:07 +0100 Subject: xdgmime: Use g_ntoh[ls] instead of the non-GLib functions for Win32 compatibility --- gst/xdgmime/xdgmime/xdgmimecache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gst') diff --git a/gst/xdgmime/xdgmime/xdgmimecache.c b/gst/xdgmime/xdgmime/xdgmimecache.c index 3a198c3b..8dce96ad 100644 --- a/gst/xdgmime/xdgmime/xdgmimecache.c +++ b/gst/xdgmime/xdgmime/xdgmimecache.c @@ -37,7 +37,7 @@ #include #include -#include /* for ntohl/ntohs */ +#include #ifdef HAVE_MMAP #include @@ -82,8 +82,8 @@ struct _XdgMimeCache char *buffer; }; -#define GET_UINT16(cache,offset) (ntohs(*(xdg_uint16_t*)((cache) + (offset)))) -#define GET_UINT32(cache,offset) (ntohl(*(xdg_uint32_t*)((cache) + (offset)))) +#define GET_UINT16(cache,offset) (g_ntohs(*(xdg_uint16_t*)((cache) + (offset)))) +#define GET_UINT32(cache,offset) (g_ntohl(*(xdg_uint32_t*)((cache) + (offset)))) XdgMimeCache * _xdg_mime_cache_ref (XdgMimeCache * cache) -- cgit v1.2.1