summaryrefslogtreecommitdiff
path: root/qemu-os-win32.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-05-15 09:51:59 +0200
committerAurelien Jarno <aurelien@aurel32.net>2011-05-15 12:34:39 +0200
commit077030d11e27811749020af744e67e4267ee90e1 (patch)
tree60d978ad5fcb7e32872ecfd51fbfdd9d26570521 /qemu-os-win32.h
parent1de9756b97daec3c15f8048631af866e9cb58562 (diff)
w32: Fix missing declaration of ffs()
target-ppc/cpu.h now needs ffs(), too, so ffs() must be declared before this file is included. Moving the declaration from qemu-common.h to qemu-os-win32.h (which is included in qemu-common.h early) fixes the compiler warning for w32. Cc: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'qemu-os-win32.h')
-rw-r--r--qemu-os-win32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-os-win32.h b/qemu-os-win32.h
index ed2753d1b..8a069d7fb 100644
--- a/qemu-os-win32.h
+++ b/qemu-os-win32.h
@@ -29,6 +29,9 @@
#include <windows.h>
#include <winsock2.h>
+/* Declaration of ffs() is missing in MinGW's strings.h. */
+int ffs(int i);
+
/* Polling handling */
/* return TRUE if no sleep should be done afterwards */