commit b16846015d211eb20bdcd6ded88072b0b8cdd3d4
parent 8ca19dcc2e985e4feb71147c79b348713d17e98a
Author: Evgeny Grin <k2k@drgrin.dev>
Date: Wed, 30 Apr 2025 19:30:47 +0300
mhd_locks: fixed build with MSVC when targeted modern OSes
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mhd2/mhd_locks.h b/src/mhd2/mhd_locks.h
@@ -1,6 +1,6 @@
/*
This file is part of libmicrohttpd
- Copyright (C) 2016-2024 Evgeny Grin (Karlson2k)
+ Copyright (C) 2016-2025 Evgeny Grin (Karlson2k)
GNU libmicrohttpd is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -43,7 +43,9 @@
#if defined(mhd_THREADS_KIND_W32)
# define mhd_MUTEX_KIND_W32_CS 1
-# if _WIN32_WINNT >= 0x0602 /* Win8 or later */
+# if 0 /* _WIN32_WINNT >= 0x0602 */ /* Win8 or later */
+ /* This include does not work as _ARM_ or _AMD64_ macros
+ are missing */
# include <synchapi.h>
# else
# include <windows.h>