Skip to content
Permalink
Browse files

msvc: fix compilation with VS 2019 16.0

- <stdexcept> used to be included in <vector>
  • Loading branch information...
atraczyk committed Sep 18, 2019
1 parent 833bd06 commit e58fc4ef316ab085db94ce0b74576d446b07571c
Showing with 2 additions and 0 deletions.
  1. +1 −0 MSVC/opendht.vcxproj
  2. +1 −0 include/opendht/sockaddr.h
@@ -244,6 +244,7 @@ copy ..\include\opendht.h $(OutDir)\include\</Command>
<DisableSpecificWarnings>4804;4800;4101;4267;4244;4503;4273;</DisableSpecificWarnings>
<AdditionalOptions>-D_SCL_SECURE_NO_WARNING;%(AdditionalOptions)</AdditionalOptions>
<ProgramDataBaseFileName>$(OutDir)lib\$(PlatformTarget)\$(TargetName).pdb</ProgramDataBaseFileName>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
@@ -40,6 +40,7 @@ typedef uint16_t in_port_t;
#include <string>
#include <memory>
#include <vector>
#include <stdexcept>
#include <stdlib.h>

#include <cstring>

0 comments on commit e58fc4e

Please sign in to comment.
You can’t perform that action at this time.