mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
Use WIN32_LEAN_AND_MEAN in lock.h
This avoids inclusion of a bunch of not very commonly used headers from windows.h No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-1
@@ -86,8 +86,9 @@ typedef pthread_mutex_t Lock;
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
typedef CRITICAL_SECTION Lock;
|
typedef CRITICAL_SECTION Lock;
|
||||||
# define lock_init(x, y) InitializeCriticalSection(x)
|
# define lock_init(x, y) InitializeCriticalSection(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user