summaryrefslogtreecommitdiffstats
path: root/gst/xdgmime
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-01 20:11:07 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-01 20:11:07 +0100
commit39850d674eb12de4c181010d37c5d9df655bfd52 (patch)
tree62d37828dd2e8fcb086d73f261650f1971cabb86 /gst/xdgmime
parentb30926428d4dfc9be532d83219f544f1d49cb9dc (diff)
downloadgst-plugins-bad-39850d674eb12de4c181010d37c5d9df655bfd52.tar.gz
gst-plugins-bad-39850d674eb12de4c181010d37c5d9df655bfd52.tar.bz2
gst-plugins-bad-39850d674eb12de4c181010d37c5d9df655bfd52.zip
xdgmime: Use g_ntoh[ls] instead of the non-GLib functions for Win32 compatibility
Diffstat (limited to 'gst/xdgmime')
-rw-r--r--gst/xdgmime/xdgmime/xdgmimecache.c6
1 files changed, 3 insertions, 3 deletions
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 <fnmatch.h>
#include <assert.h>
-#include <netinet/in.h> /* for ntohl/ntohs */
+#include <glib.h>
#ifdef HAVE_MMAP
#include <sys/mman.h>
@@ -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)