Skip to content

Commit

Permalink
Fixup MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-loki committed May 15, 2019
1 parent 4bf2020 commit f734ffe
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"variables": []
},
{
"name": "x64-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64_x64" ],
"variables": []
}
]
}
2 changes: 2 additions & 0 deletions llarp/net/net_int.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <net/net_int.hpp>

#include <string>

namespace llarp
{
template <>
Expand Down
4 changes: 4 additions & 0 deletions llarp/util/ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <iostream>
#include <util/logger.hpp>

#ifdef LoadString
#undef LoadString
#endif

namespace llarp
{
bool
Expand Down
2 changes: 1 addition & 1 deletion llarp/util/threadpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ llarp_threadpool_queue_job(struct llarp_threadpool *pool,
{
while(!pool->impl->tryAddJob(std::bind(job.work, job.user)))
{
::usleep(1000);
std::this_thread::sleep_for(std::chrono::microseconds(1000));
}
}
else
Expand Down

0 comments on commit f734ffe

Please sign in to comment.