From 49dc768d4c579298d56777348422ebdca565a3ef Mon Sep 17 00:00:00 2001 From: aliguori Date: Sun, 8 Mar 2009 16:26:59 +0000 Subject: Fix windows build and clean up use of We want to globally define WIN_LEAN_AND_MEAN and WINVER to particular values so let's do it in OS_CFLAGS. Then, we can pepper in windows.h includes where using #includes that require it. Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6783 c046a42c-6fe2-441c-8c8c-71466251a162 --- block.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'block.c') diff --git a/block.c b/block.c index 36de3b6183..bd65ed3611 100644 --- a/block.c +++ b/block.c @@ -40,6 +40,10 @@ #endif #endif +#ifdef _WIN32 +#include +#endif + #define SECTOR_BITS 9 #define SECTOR_SIZE (1 << SECTOR_BITS) -- cgit v1.2.3