8000 Feature/boost 1.7.1 arango changes (#10296) · arangodb/arangodb@6cfce93 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6cfce93

Browse files
authored
Feature/boost 1.7.1 arango changes (#10296)
* bump boost version * add missing header * try to fix _snprintf problem * Revert "try to fix _snprintf problem" This reverts commit 80cfef0. * another go at _snprintf
1 parent 1ffd1a0 commit 6cfce93

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

3rdParty/boost/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(boost)
22

33
#the boost version must also be adjusted in the top-level CMakeLists.txt file
4-
set(boost_version "1.69.0")
4+
set(boost_version "1.17.0")
55
set(BOOST_VERSION ${boost_version} PARENT_SCOPE)
66
set(boost_src "${CMAKE_CURRENT_SOURCE_DIR}/${boost_version}")
77

lib/Basics/operating-system.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,10 @@
730730
#define TRI_random ::rand
731731
#define TRI_srandom ::srand
732732

733+
#if ( defined(_MSC_VER) && _MSC_VER < 1900 ) || ( defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) )
733734
#define snprintf _snprintf
735+
#endif
736+
734737
#define strcasecmp _stricmp
735738
#define strncasecmp _strnicmp
736739

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ target_link_libraries(arangodbtests
255255
rocksdb
256256
snappy
257257
gtest
258+
boost_boost
258259
)
259260

260261
if (USE_ENTERPRISE)

tests/Mocks/Servers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
#include <velocypack/Slice.h>
8383
#include <velocypack/velocypack-aliases.h>
8484

85+
#include <boost/core/demangle.hpp>
8586
using namespace arangodb;
8687
using namespace arangodb::tests;
8788
using namespace arangodb::tests::mocks;

0 commit comments

Comments
 (0)
0