blob: fc7dee623e08b121cdcee7b40af9d91afcc352ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
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;
|