#else
-
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
typedef CRITICAL_SECTION Lock;
# define lock_init(x, y) InitializeCriticalSection(x)
#endif
+static inline bool lock_grab_bool(Lock* x) {
+ lock_grab(x);
+ return true;
+}
#endif // !defined(LOCK_H_INCLUDED)