Commit 49dc768d4c579298d56777348422ebdca565a3ef
1 parent
2734c703
Fix windows build and clean up use of <windows.h>
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 <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6783 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
14 changed files
with
13 additions
and
13 deletions
block-raw-win32.c
block.c
configure
kqemu.c
net.c
osdep.c
qemu-common.h
... | ... | @@ -2,12 +2,6 @@ |
2 | 2 | #ifndef QEMU_COMMON_H |
3 | 3 | #define QEMU_COMMON_H |
4 | 4 | |
5 | -#ifdef _WIN32 | |
6 | -#define WIN32_LEAN_AND_MEAN | |
7 | -#define WINVER 0x0501 /* needed for ipv6 bits */ | |
8 | -#include <windows.h> | |
9 | -#endif | |
10 | - | |
11 | 5 | #define QEMU_NORETURN __attribute__ ((__noreturn__)) |
12 | 6 | |
13 | 7 | /* Hack around the mess dyngen-exec.h causes: We need QEMU_NORETURN in files that | ... | ... |
qemu-img.c
qemu_socket.h
savevm.c
slirp/slirp.h
sysemu.h
tap-win32.c