From: Marco Costalba Date: Tue, 15 Sep 2009 07:11:42 +0000 (+0100) Subject: Use WIN32_LEAN_AND_MEAN in lock.h X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=77ac1e795340275a38cfbfdfddada0077cdbb672 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 --- diff --git a/src/lock.h b/src/lock.h index cd4dfa70..14fcd5d9 100644 --- a/src/lock.h +++ b/src/lock.h @@ -86,8 +86,9 @@ typedef pthread_mutex_t Lock; #else - +#define WIN32_LEAN_AND_MEAN #include +#undef WIN32_LEAN_AND_MEAN typedef CRITICAL_SECTION Lock; # define lock_init(x, y) InitializeCriticalSection(x)