[Liblas-commits] r1323 - branches/1.2/include/liblas/detail
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Jul 28 13:04:33 EDT 2009
Author: hobu
Date: Tue Jul 28 13:04:33 2009
New Revision: 1323
URL: http://liblas.org/changeset/1323
Log:
attempt to fix the case when both _BIG_ENDIAN and _LITTLE_ENDIANT are defined for a system by assuming it's just _LITTLE_ENDIAN #133
Modified:
branches/1.2/include/liblas/detail/endian.hpp
Modified: branches/1.2/include/liblas/detail/endian.hpp
==============================================================================
--- branches/1.2/include/liblas/detail/endian.hpp (original)
+++ branches/1.2/include/liblas/detail/endian.hpp Tue Jul 28 13:04:33 2009
@@ -69,6 +69,12 @@
#elif defined(_LITTLE_ENDIAN)
# define LIBLAS_LITTLE_ENDIAN
# define LIBLAS_BYTE_ORDER 1234
+
+// If they're both defined, we're assuming little for now. See http://liblas.org/ticket/133
+#elif defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
+# define LIBLAS_LITTLE_ENDIAN
+# define LIBLAS_BYTE_ORDER 1234
+
#elif defined(__sparc) || defined(__sparc__) \
|| defined(_POWER) || defined(__powerpc__) \
|| defined(__ppc__) || defined(__hpux) \
More information about the Liblas-commits
mailing list