summaryrefslogtreecommitdiffstats
path: root/gst/xdgmime
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-01 20:09:24 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-01 20:09:24 +0100
commitb30926428d4dfc9be532d83219f544f1d49cb9dc (patch)
tree48170bae70b3e02d38b3775d2f0755a44b277a3c /gst/xdgmime
parent797d918f701ab300e6ef59e07dbb750e5cff5f48 (diff)
downloadgst-plugins-bad-b30926428d4dfc9be532d83219f544f1d49cb9dc.tar.gz
gst-plugins-bad-b30926428d4dfc9be532d83219f544f1d49cb9dc.tar.bz2
gst-plugins-bad-b30926428d4dfc9be532d83219f544f1d49cb9dc.zip
xdgmime: Use G_BYTE_ORDER instead of relying on LITTLE_ENDIAN to be defined
Diffstat (limited to 'gst/xdgmime')
-rw-r--r--gst/xdgmime/xdgmime/xdgmimemagic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/xdgmime/xdgmime/xdgmimemagic.c b/gst/xdgmime/xdgmime/xdgmimemagic.c
index 814750eb..4c2c0bba 100644
--- a/gst/xdgmime/xdgmime/xdgmimemagic.c
+++ b/gst/xdgmime/xdgmime/xdgmimemagic.c
@@ -39,6 +39,9 @@
#include <errno.h>
#include <limits.h>
+/* For G_BYTE_ORDER */
+#include <glib.h>
+
#ifndef FALSE
#define FALSE (0)
#endif
@@ -446,7 +449,7 @@ _xdg_mime_magic_parse_magic_line (FILE * magic_file, XdgMimeMagicMatch * match)
return XDG_MIME_MAGIC_ERROR;
}
/* FIXME: need to get this defined in a <config.h> style file */
-#if LITTLE_ENDIAN
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
for (i = 0; i < matchlet->value_length; i = i + matchlet->word_size) {
if (matchlet->word_size == 2)
*((xdg_uint16_t *) matchlet->value + i) =