From 077030d11e27811749020af744e67e4267ee90e1 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 15 May 2011 09:51:59 +0200 Subject: 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 Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- qemu-os-win32.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu-os-win32.h') diff --git a/qemu-os-win32.h b/qemu-os-win32.h index ed2753d..8a069d7 100644 --- a/qemu-os-win32.h +++ b/qemu-os-win32.h @@ -29,6 +29,9 @@ #include #include +/* 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 */ -- cgit v1.1