summaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/qemu-common.h b/qemu-common.h
index 6ee31e0788..db6c1a612c 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -2,6 +2,12 @@
#ifndef QEMU_COMMON_H
#define QEMU_COMMON_H
+#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
+#define WINVER 0x0501 /* needed for ipv6 bits */
+#include <windows.h>
+#endif
+
#define noreturn __attribute__ ((__noreturn__))
/* Hack around the mess dyngen-exec.h causes: We need noreturn in files that
@@ -47,9 +53,6 @@ struct iovec {
#endif
#ifdef _WIN32
-#define WIN32_LEAN_AND_MEAN
-#define WINVER 0x0501 /* needed for ipv6 bits */
-#include <windows.h>
#define fsync _commit
#define lseek _lseeki64
#define ENOTSUP 4096