41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From af431abce95076b59f4eb7c6ef0930ca57c8a063 Mon Sep 17 00:00:00 2001
|
|
From: Piotr Dobrowolski <dobrypd@gmail.com>
|
|
Date: Thu, 25 Apr 2019 15:33:28 +0200
|
|
Subject: [PATCH] Use LIBLAS_BIG_ENDIAN instead of BOOST_BIG_ENDIAN (#166)
|
|
|
|
Fixes #165
|
|
---
|
|
include/liblas/detail/binary.hpp | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/include/liblas/detail/binary.hpp b/include/liblas/detail/binary.hpp
|
|
index 3dd8a6fc..8f0b3d47 100644
|
|
--- a/include/liblas/detail/binary.hpp
|
|
+++ b/include/liblas/detail/binary.hpp
|
|
@@ -17,6 +17,8 @@
|
|
#ifndef LIBLAS_DETAIL_BINARY_HPP_INCLUDED
|
|
#define LIBLAS_DETAIL_BINARY_HPP_INCLUDED
|
|
|
|
+#include <liblas/detail/endian.hpp>
|
|
+
|
|
#include <cassert>
|
|
#include <climits>
|
|
#include <cstring>
|
|
@@ -25,7 +27,6 @@
|
|
|
|
#include <boost/config.hpp>
|
|
#include <boost/static_assert.hpp>
|
|
-#include <boost/detail/endian.hpp>
|
|
#include <boost/type_traits/is_signed.hpp>
|
|
|
|
#if CHAR_BIT != 8
|
|
@@ -43,7 +44,7 @@ namespace detail { namespace binary {
|
|
struct big_endian_tag {};
|
|
struct little_endian_tag {};
|
|
|
|
-#ifdef BOOST_BIG_ENDIAN
|
|
+#ifdef LIBLAS_BIG_ENDIAN
|
|
typedef big_endian_tag native_endian_tag;
|
|
#else
|
|
typedef little_endian_tag native_endian_tag;
|