mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +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:
parent
cddda7cd19
commit
77ac1e7953
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue