[DebianGIS-dev] Bug#339020: please apply the patch enclosed
Francesco Paolo Lovergine
frankie at debian.org
Mon Nov 14 15:17:04 UTC 2005
Package: e00compr
Followup-For: Bug #339020
--- cpl_port.h 2005-09-17 15:56:44.000000000 +0200
+++ /tmp/cpl_port.h 2005-11-14 16:15:48.000000000 +0100
@@ -171,9 +171,18 @@
* This should be defined in the Makefile, but if it is not then
* the default is CPL_LSB (Intel ordering, LSB first).
*--------------------------------------------------------------------*/
+/*
#if ! ( defined(CPL_LSB) || defined(CPL_MSB) )
#define CPL_LSB
#endif
+*/
+
+#include <endian.h>
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+# define CPL_LSB
+#elif __BYTE_ORDER == __BIG_ENDIAN
+# define CPL_MSB
+#endif
/*---------------------------------------------------------------------
* Little endian <==> big endian byte swap macros.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=it_IT at euro, LC_CTYPE=it_IT at euro (charmap=ISO-8859-15)
More information about the Pkg-grass-devel
mailing list