Am 23.02.2014 um 18:02 hat Stefan Weil geschrieben: > These header files are used by most QEMU source files. If they > depend on windows.h, all those source files do so, too. > > All Windows specific data types which are replaced use identical > definitions for the 32 and 64 bit Windows APIs. HANDLE and LONG > can be directly replaced by void * and long. CRITICAL_SECTION > is replaced by a new struct of the same size. > > Add an explicit dependency on sysemu/os-winapi.h for some files which need it. > These sources use the Windows API (see comment after include statement) > and no longer get windows.h indirectly from other header files. > > A workaround which was added in the previous patch is no longer needed. > > Now 175 *.o files remain which still depend on windows.h. > > Cc: Anthony Liguori <aligu...@amazon.com> > Cc: Stefan Hajnoczi <stefa...@redhat.com> > Cc: Kevin Wolf <kw...@redhat.com> > Signed-off-by: Stefan Weil <s...@weilnetz.de>
Not sure if I understand the problem. Why is it bad to depend on windows.h? Kevin