We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186a915 commit 7d549c0Copy full SHA for 7d549c0
compat/nedmalloc/malloc.c.h
@@ -1804,9 +1804,10 @@ struct win32_mlock_t
1804
volatile long threadid;
1805
};
1806
1807
+static inline int return_0(int i) { return 0; }
1808
#define MLOCK_T struct win32_mlock_t
1809
#define CURRENT_THREAD win32_getcurrentthreadid()
-#define INITIAL_LOCK(sl) (memset(sl, 0, sizeof(MLOCK_T)), 0)
1810
+#define INITIAL_LOCK(sl) (memset(sl, 0, sizeof(MLOCK_T)), return_0(0))
1811
#define ACQUIRE_LOCK(sl) win32_acquire_lock(sl)
1812
#define RELEASE_LOCK(sl) win32_release_lock(sl)
1813
#define TRY_LOCK(sl) win32_try_lock(sl)
0 commit comments