Skip to content

Commit 4dbb8ba

Browse files
Update src/cli.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 64e7657 commit 4dbb8ba

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/cli.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@
4040
#define CLI_WINDOWS 1
4141
#define WIN32_LEAN_AND_MEAN
4242
#define NOMINMAX
43-
#include <windows.h>
44-
#ifdef _WIN32_WINNT
45-
#undef _WIN32_WINNT
43+
#ifndef _WIN32_WINNT
44+
#define _WIN32_WINNT 0x0600
4645
#endif
47-
#ifdef WINVER
48-
#undef WINVER
46+
#ifndef WINVER
47+
#define WINVER _WIN32_WINNT
4948
#endif
50-
#define _WIN32_WINNT 0x0600
51-
#define WINVER _WIN32_WINNT
49+
#include <windows.h>
5250
#else
5351
#define CLI_WINDOWS 0
5452
#endif

0 commit comments

Comments
 (0)