mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
1de9756b97
commit
077030d11e
2 changed files with 3 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue