diff options
author | Miroslaw Stein <miroslaw.stein@isode.com> | 2019-01-18 14:30:24 (GMT) |
---|---|---|
committer | Edwin Mons <edwin.mons@isode.com> | 2019-01-22 12:50:24 (GMT) |
commit | bb3bd8a32b220b9c1ffd566da00bcd0ba546156c (patch) | |
tree | a3ffe24fc8b319f61bd29dd3dc0d76b0d54d9a45 | |
parent | a21993d750396d755717df21e331df87af8a0c6a (diff) | |
download | swift-swift-4.x.zip swift-swift-4.x.tar.bz2 |
Avoid deprecated boost endianess includeswift-4.x
As of Boost 1.69.0, boost/detail/endian.h is deprecated in favour of
boost/predef/other/endian.h, and BOOST_(LITTLE|BIG)_ENDIAN by
BOOST_ENDIAN_(LITTLE|BIG)_BYTE.
Test-Information:
Unit tests pass on Debian 9
Change-Id: If7076c559a4e35219ff97603f50b80cfbe05b29b
-rw-r--r-- | Swiften/Base/Platform.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Base/Platform.h b/Swiften/Base/Platform.h index 4deba2b..22dff30 100644 --- a/Swiften/Base/Platform.h +++ b/Swiften/Base/Platform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2019 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -43,9 +43,9 @@ #endif // Endianness -#include <boost/detail/endian.hpp> -#if defined(BOOST_LITTLE_ENDIAN) +#include <boost/predef/other/endian.h> +#if defined(BOOST_ENDIAN_LITTLE_BYTE) #define SWIFTEN_LITTLE_ENDIAN -#elif defined(BOOST_BIG_ENDIAN) +#elif defined(BOOST_ENDIAN_BIG_BYTE) #define SWIFTEN_BIG_ENDIAN #endif |