]> git.pld-linux.org Git - packages/mongodb.git/blob - boost-1.73.patch
- fix building with boost 1.73
[packages/mongodb.git] / boost-1.73.patch
1 --- mongodb-src-r2.2.4/src/mongo/util/goodies.h.orig    2013-04-01 04:41:49.000000000 +0200
2 +++ mongodb-src-r2.2.4/src/mongo/util/goodies.h 2020-08-09 18:15:59.585368115 +0200
3 @@ -18,7 +18,7 @@
4  
5  #pragma once
6  
7 -#include <boost/detail/endian.hpp>
8 +#include <boost/predef/other/endian.h>
9  #include <boost/thread/condition_variable.hpp>
10  
11  #include "mongo/bson/util/misc.h"
12 @@ -99,11 +99,11 @@
13              ((x & 0xff000000) >> 24);
14      }
15  
16 -#if defined(BOOST_LITTLE_ENDIAN)
17 +#if BOOST_ENDIAN_LITTLE_BYTE
18      inline unsigned long fixEndian(unsigned long x) {
19          return x;
20      }
21 -#elif defined(BOOST_BIG_ENDIAN)
22 +#elif BOOST_ENDIAN_BIG_BYTE
23      inline unsigned long fixEndian(unsigned long x) {
24          return swapEndian(x);
25      }
This page took 0.072976 seconds and 3 git commands to generate.