mirror of
https://github.com/monero-project/monero.git
synced 2025-06-04 23:28:52 -04:00
boost: update obsolete usage of endian API
This commit is contained in:
parent
9d7107c870
commit
b350726a5a
4 changed files with 8 additions and 7 deletions
|
@ -221,7 +221,7 @@ public:
|
|||
// See http://www.boost.org for updates, documentation, and revision history.
|
||||
|
||||
#include <ostream>
|
||||
#include <boost/detail/endian.hpp>
|
||||
#include <boost/predef/other/endian.h>
|
||||
|
||||
namespace boost { namespace archive {
|
||||
|
||||
|
@ -258,7 +258,7 @@ portable_binary_oarchive::save_impl(
|
|||
else
|
||||
ll = l;
|
||||
char * cptr = reinterpret_cast<char *>(& ll);
|
||||
#ifdef BOOST_BIG_ENDIAN
|
||||
#if BOOST_ENDIAN_BIG_BYTE
|
||||
cptr += (sizeof(boost::intmax_t) - size);
|
||||
if(m_flags & endian_little)
|
||||
reverse_bytes(size, cptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue