From 540e01f1fea2fef32c6f25141b123e282af1cfc8 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 18 Jul 2018 21:21:35 +0200 Subject: [PATCH] Fix prototype of the callback to InitOnceExecuteOnce: Missing CALLBACK. (Some version of the compilers for windows produced warnings) --- m-mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-mutex.h b/m-mutex.h index ce42059a..79777dbb 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -226,7 +226,7 @@ static inline bool m_thread_sleep(unsigned long long usec) // Internal type, not exported. typedef INIT_ONCE m_oncei_t[1]; #define M_ONCEI_INIT_VALUE { INIT_ONCE_STATIC_INIT } -static inline BOOL m_oncei_callback( PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext) +static inline BOOL CALLBACK m_oncei_callback( PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext) { void (*func)(void); (void) InitOnce;