mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
xdgmime: Use g_ntoh[ls] instead of the non-GLib functions for Win32 compatibility
This commit is contained in:
parent
b30926428d
commit
39850d674e
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue