From ae978369a3cded0f1d41c91591360cf814fb62a3 Mon Sep 17 00:00:00 2001 From: Florian Zachs <44909261+HerrNamenlos123@users.noreply.github.com> Date: Sun, 16 Oct 2022 13:41:24 +0200 Subject: [PATCH] Prevent macro overwrite warning --- src/nfd_win.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nfd_win.cpp b/src/nfd_win.cpp index 949da2b..d01dc60 100644 --- a/src/nfd_win.cpp +++ b/src/nfd_win.cpp @@ -8,7 +8,12 @@ #ifdef __MINGW32__ // Explicitly setting NTDDI version, this is necessary for the MinGW compiler #define NTDDI_VERSION NTDDI_VISTA + +#ifdef _WIN32_WINNT +#undef _WIN32_WINNT // Prevent a warning about overwriting an existing define by first undefining it +#endif #define _WIN32_WINNT _WIN32_WINNT_VISTA + #endif #define _CRTDBG_MAP_ALLOC