From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHscO-0005mu-6n for qemu-devel@nongnu.org; Mon, 24 Feb 2014 05:18:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHscJ-0008JI-AS for qemu-devel@nongnu.org; Mon, 24 Feb 2014 05:18:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHscJ-0008JA-2u for qemu-devel@nongnu.org; Mon, 24 Feb 2014 05:18:31 -0500 Date: Mon, 24 Feb 2014 11:17:30 +0100 From: Kevin Wolf Message-ID: <20140224101730.GF3775@dhcp-200-207.str.redhat.com> References: <1393174935-11750-1-git-send-email-sw@weilnetz.de> <1393174935-11750-10-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1393174935-11750-10-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH 9/9] w32: Replace Windows specific data types in common header files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Peter Maydell , Stefan Hajnoczi , qemu-devel@nongnu.org, Anthony Liguori 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 > Cc: Stefan Hajnoczi > Cc: Kevin Wolf > Signed-off-by: Stefan Weil Not sure if I understand the problem. Why is it bad to depend on windows.h? Kevin