diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2019-11-01 13:52:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-01 13:52:37 +0000 |
commit | 3439b0f87953229ab0f4153abe134db117fb5db5 (patch) | |
tree | 6cdfe275ccd74e90b4d417a0f18a43f555e8a5d8 /src/third_party | |
parent | 0cbee170444cd668fb972196047464ec6b904bbd (diff) | |
download | mongo-3439b0f87953229ab0f4153abe134db117fb5db5.tar.gz |
SERVER-44315 Allow compilation using Visual Studio 2019
Diffstat (limited to 'src/third_party')
-rw-r--r-- | src/third_party/boost-1.70.0/SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/boost-1.70.0/SConscript b/src/third_party/boost-1.70.0/SConscript index 12d11298e4f..9d5ab1ccee0 100644 --- a/src/third_party/boost-1.70.0/SConscript +++ b/src/third_party/boost-1.70.0/SConscript @@ -117,6 +117,12 @@ if env.ToolchainIs('msvc'): # the current source character set (codepage 65001). loglib_env.AppendUnique(CCFLAGS=['/wd4828']) + # permissions.cpp includes windows.h directly, causing issues with boost winapi (error C2116 and C2733) + loglib_env.AppendUnique( + CPPDEFINES=[ + 'BOOST_USE_WINDOWS_H', + ]) + loglib_env.Library( target='boost_log', source=[ |