Use_LIBLAS_BIG_ENDIAN.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From af431abce95076b59f4eb7c6ef0930ca57c8a063 Mon Sep 17 00:00:00 2001
  2. From: Piotr Dobrowolski <dobrypd@gmail.com>
  3. Date: Thu, 25 Apr 2019 15:33:28 +0200
  4. Subject: [PATCH] Use LIBLAS_BIG_ENDIAN instead of BOOST_BIG_ENDIAN (#166)
  5. Fixes #165
  6. ---
  7. include/liblas/detail/binary.hpp | 5 +++--
  8. 1 file changed, 3 insertions(+), 2 deletions(-)
  9. diff --git a/include/liblas/detail/binary.hpp b/include/liblas/detail/binary.hpp
  10. index 3dd8a6fc..8f0b3d47 100644
  11. --- a/include/liblas/detail/binary.hpp
  12. +++ b/include/liblas/detail/binary.hpp
  13. @@ -17,6 +17,8 @@
  14. #ifndef LIBLAS_DETAIL_BINARY_HPP_INCLUDED
  15. #define LIBLAS_DETAIL_BINARY_HPP_INCLUDED
  16. +#include <liblas/detail/endian.hpp>
  17. +
  18. #include <cassert>
  19. #include <climits>
  20. #include <cstring>
  21. @@ -25,7 +27,6 @@
  22. #include <boost/config.hpp>
  23. #include <boost/static_assert.hpp>
  24. -#include <boost/detail/endian.hpp>
  25. #include <boost/type_traits/is_signed.hpp>
  26. #if CHAR_BIT != 8
  27. @@ -43,7 +44,7 @@ namespace detail { namespace binary {
  28. struct big_endian_tag {};
  29. struct little_endian_tag {};
  30. -#ifdef BOOST_BIG_ENDIAN
  31. +#ifdef LIBLAS_BIG_ENDIAN
  32. typedef big_endian_tag native_endian_tag;
  33. #else
  34. typedef little_endian_tag native_endian_tag;