libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 805a4b8e22dbf3d8db414d029e765cb67a3e0fda
parent 87ea5b51ee10de2302775b42e20f50370f388a67
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Wed,  5 Nov 2025 15:58:53 +0100

mhd_locks.h: fixed build on modern W32

Diffstat:
Msrc/mhd2/mhd_locks.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mhd2/mhd_locks.h b/src/mhd2/mhd_locks.h @@ -210,7 +210,7 @@ typedef CRITICAL_SECTION mhd_mutex; * @param pmutex the pointer to the mutex * @return always nonzero (success) */ -# define mhd_mutex_destroy(pmutex) ((void) (pmutex)) +# define mhd_mutex_destroy(pmutex) ((void) (pmutex), ! 0) #elif defined(mhd_MUTEX_KIND_W32_CS) /** * Destroy previously initialised mutex. @@ -265,7 +265,7 @@ typedef CRITICAL_SECTION mhd_mutex; * @param pmutex the pointer to the mutex * @return always nonzero (success) */ -# define mhd_mutex_lock(pmutex) (ReleaseSRWLockExclusive ((pmutex)), ! 0) +# define mhd_mutex_unlock(pmutex) (ReleaseSRWLockExclusive ((pmutex)), ! 0) #elif defined(mhd_MUTEX_KIND_W32_CS) /** * Unlock previously initialised and locked mutex.