Skip to content

Commit 4888360

Browse files
committed
fix: tyr to fix windows winsock2 problem
1 parent 317577d commit 4888360

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/lobby/credentials/secret.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ secret::SecretStorage::store(const std::string& key, const std::string& value, b
141141
#include <fmt/format.h>
142142
#include <spdlog/spdlog.h>
143143

144+
#ifndef NOMINMAX
145+
#define NOMINMAX
146+
#endif
147+
#ifndef _WINSOCKAPI_
148+
#define _WINSOCKAPI_
149+
#endif
150+
#include <WTypesbase.h>
151+
#include <ncrypt.h>
152+
153+
144154
namespace {
145155

146156
namespace constants {

src/lobby/credentials/secret.hpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,8 @@
1212
#include <keyutils.h>
1313
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
1414

15-
#ifndef NOMINMAX
16-
#define NOMINMAX
17-
#endif
18-
19-
#include <winsock2.h>
20-
21-
#include <windows.h>
22-
23-
#include <ncrypt.h>
15+
using UINT_PTR = u64;
16+
using NCRYPT_PROV_HANDLE = ULONG_PTR;
2417

2518
#endif
2619

0 commit comments

Comments
 (0)