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 10:49:38 (GMT) |
| commit | 3666cbbe30e4d4e25401a5902ae359bc2c24248b (patch) | |
| tree | 383caed6926f0706d755f3e57aa6121636a1053b | |
| parent | a2dc74cd0e4891037b97b6a782de80458675e4f0 (diff) | |
| download | swift-3666cbbe30e4d4e25401a5902ae359bc2c24248b.zip swift-3666cbbe30e4d4e25401a5902ae359bc2c24248b.tar.bz2 | |
Avoid deprecated boost endianess include
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 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2019 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -43,9 +43,9 @@ | |||
| 43 | #endif | 43 | #endif |
| 44 | 44 | ||
| 45 | // Endianness | 45 | // Endianness |
| 46 | #include <boost/detail/endian.hpp> | 46 | #include <boost/predef/other/endian.h> |
| 47 | #if defined(BOOST_LITTLE_ENDIAN) | 47 | #if defined(BOOST_ENDIAN_LITTLE_BYTE) |
| 48 | #define SWIFTEN_LITTLE_ENDIAN | 48 | #define SWIFTEN_LITTLE_ENDIAN |
| 49 | #elif defined(BOOST_BIG_ENDIAN) | 49 | #elif defined(BOOST_ENDIAN_BIG_BYTE) |
| 50 | #define SWIFTEN_BIG_ENDIAN | 50 | #define SWIFTEN_BIG_ENDIAN |
| 51 | #endif | 51 | #endif |
Swift