windows fixes

pull/2213/head
dr7ana 7 months ago
parent 7314c2a22a
commit b7e21becf0

@ -69,7 +69,9 @@ IncludeCategories:
Priority: 3
- Regex: '<winsock2\.h>'
Priority: 4
- Regex: '^<.*\.h(pp)?>$'
- Regex: '<windows\.h>'
Priority: 5
- Regex: '(<)(.)+(>)'
- Regex: '^<.*\.h(pp)?>$'
Priority: 6
- Regex: '(<)(.)+(>)'
Priority: 7

@ -25,8 +25,6 @@
#ifdef _WIN32
#include <llarp/win32/service_manager.hpp>
#include <dbghelp.h>
#else
#include <llarp/util/service_manager.hpp>
#endif

@ -6,8 +6,9 @@
#ifdef _WIN32
#include <llarp/win32/exception.hpp>
#include <stringapiset.h>
#include <windows.h>
#include <stringapiset.h>
#endif
namespace llarp

@ -8,9 +8,10 @@
#include <winsock2.h>
#include <iphlpapi.h>
#include <windows.h>
#include <iphlpapi.h>
namespace llarp::win32
{
using namespace llarp::vpn;

@ -3,9 +3,6 @@
#include <llarp.hpp>
#include <llarp/util/logging.hpp>
#include <dbghelp.h>
#include <windows.h>
#include <cassert>
#include <chrono>
#include <csignal>
@ -18,7 +15,6 @@ namespace llarp::sys
namespace
{
std::optional<DWORD>
to_win32_state(ServiceState st)
{

@ -2,6 +2,10 @@
#include <llarp/util/service_manager.hpp>
#include <llarp/util/types.hpp>
#include <windows.h>
#include <dbghelp.h>
#include <chrono>
namespace llarp::sys

@ -11,10 +11,11 @@
// these need to be in a specific order
#include <llarp/net/net.h>
#include <windows.h>
#include <assert.h>
#include <iphlpapi.h>
#include <stdbool.h>
#include <windows.h>
const char*
inet_ntop(int af, const void* src, char* dst, size_t size)

Loading…
Cancel
Save