From 6af22908a65385d66cffbd6413043e17236238c1 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Fri, 12 Apr 2024 18:08:49 +0200 Subject: [PATCH] encmain.c: guard WINVER and _WIN32_WINNT macros --- src/encmain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/encmain.c b/src/encmain.c index 3debdb9a..ce517f10 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -37,8 +37,12 @@ #ifdef _WIN32 /* The following two defines must be located before the inclusion of any system header files. */ +#ifndef WINVER #define WINVER 0x0500 +#endif +#ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0500 +#endif #include "global.h" // IWYU pragma: keep