summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Chow Loong Jin2014-03-29 03:02:00 +0800
committerGravatar Nikias Bassen2014-03-29 16:08:47 +0100
commitbd73598e02a1402a582c73e04fa6d515d6b56ae1 (patch)
tree94bf0fb5ce98902aef4efc24f1bb093c33b49c8c /src
parentc44a2566aec583eed33af9b1a3b15a0c564725e4 (diff)
downloadlibplist-bd73598e02a1402a582c73e04fa6d515d6b56ae1.tar.gz
libplist-bd73598e02a1402a582c73e04fa6d515d6b56ae1.tar.bz2
Fix endian detection in configure.ac
On debian-mips, neither __LITTLE_ENDIAN__ nor __BIG_ENDIAN__ are defined anywhere, so PLIST_BYTE_ORDER defaults to PLIST_LITTLE_ENDIAN when it should really be PLIST_BIG_ENDIAN on this architecture. This fixes issue #13.
Diffstat (limited to 'src')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index beb4a2b..c71ef4a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -1,6 +1,10 @@
#ifndef COMMON_H
#define COMMON_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#define PLIST_LITTLE_ENDIAN 0
#define PLIST_BIG_ENDIAN 1