[Liblas-commits] r1324 - trunk/include/liblas/detail

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Jul 28 13:05:15 EDT 2009


Author: hobu
Date: Tue Jul 28 13:05:15 2009
New Revision: 1324
URL: http://liblas.org/changeset/1324

Log:
forwardport r1323 for #133

Modified:
   trunk/include/liblas/detail/endian.hpp

Modified: trunk/include/liblas/detail/endian.hpp
==============================================================================
--- trunk/include/liblas/detail/endian.hpp	(original)
+++ trunk/include/liblas/detail/endian.hpp	Tue Jul 28 13:05:15 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