From 77ac1e795340275a38cfbfdfddada0077cdbb672 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 15 Sep 2009 08:11:42 +0100 Subject: [PATCH 1/1] 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 --- src/lock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2