From b978277115e137f0f2822fa84d9cbbbecab58eeb Mon Sep 17 00:00:00 2001
From: Gerardo Tauriello <gerardo.tauriello@unibas.ch>
Date: Fri, 14 Jun 2019 16:47:49 +0200
Subject: [PATCH] Remove endian deprecation warning in recent Boost versions.

---
 modules/io/src/convert.hh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/io/src/convert.hh b/modules/io/src/convert.hh
index 93c741e01..dc3ce9676 100644
--- a/modules/io/src/convert.hh
+++ b/modules/io/src/convert.hh
@@ -20,14 +20,21 @@
 #ifndef OST_IO_CONVERT_H
 #define OST_IO_CONVERT_H
 
-
+// endian macros deprecated in Boost 1.68
+#if BOOST_VERSION<106800
 #include <boost/detail/endian.hpp>
+#ifdef BOOST_BIG_ENDIAN
+#define BOOST_ENDIAN_BIG_BYTE
+#endif
+#else
+#include <boost/predef/other/endian.h>
+#endif
 
 namespace ost { namespace io {
 
 enum Endianess {
   OST_BIG_ENDIAN,OST_LITTLE_ENDIAN,OST_VAX_DATA,
-#ifdef BOOST_BIG_ENDIAN
+#ifdef BOOST_ENDIAN_BIG_BYTE
   OST_LOCAL_ENDIAN = OST_BIG_ENDIAN
 #else
   OST_LOCAL_ENDIAN = OST_LITTLE_ENDIAN
-- 
GitLab