Today, most .o files depend on windows.h when QEMU is built with MinGW or MinGW-w64 (32 and 64 bit builds). These patches reduce the number of such files from more than 1800 to less than 180. They also allow removing some hacks which were needed because of conflicts with windows.h. A nasty compiler warning is fixed, too.
The modifications were tested with MinGW (32 bit native) and MinGW-w64 (32 and 64 bit cross). Regards Stefan W. [PATCH 1/9] util/iov: Use qemu/sockets.h instead of conditional code [PATCH 2/9] exec: Remove unneeded include files [PATCH 3/9] qemu-img: Remove unneeded include files [PATCH 4/9] qga: Remove unneeded include file [PATCH 5/9] vl: Remove unneeded include file [PATCH 6/9] w32: Add and use intermediate include file for windows.h [PATCH 7/9] w32: Move inline function from header file to C source [PATCH 8/9] w32: Reduce dependencies in sysemu/os-win32.h [PATCH 9/9] w32: Replace Windows specific data types in common