Skip to content

Commit ec22863

Browse files
committed
fix: windows, define WIN32_LEAN_AND_MEAN so that windows.h behaves correctly
1 parent 1799b2e commit ec22863

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/discord/core.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#ifndef NOMINMAX
1313
#define NOMINMAX
1414
#endif
15+
#ifndef WIN32_LEAN_AND_MEAN
16+
#define WIN32_LEAN_AND_MEAN
17+
#endif
1518
#endif
1619

1720
#include <discord.h>

src/libs/core/helper/sleep.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#ifndef NOMINMAX
88
#define NOMINMAX
99
#endif
10+
#ifndef WIN32_LEAN_AND_MEAN
11+
#define WIN32_LEAN_AND_MEAN
12+
#endif
1013
#include <windows.h>
1114
#else
1215
#include <cerrno>

0 commit comments

Comments
 (0)