Received: from eggs.gnu.org ([2001:4830:134:3::10]:52514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN1yw-0007pO-4K for qemu-devel@nongnu.org; Mon, 10 Mar 2014 11:19:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN1yl-0007ta-Dh for qemu-devel@nongnu.org; Mon, 10 Mar 2014 11:19:10 -0400 Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]:36410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN1yl-0007tF-70 for qemu-devel@nongnu.org; Mon, 10 Mar 2014 11:18:59 -0400 Received: by mail-ea0-f174.google.com with SMTP id f15so3775003eak.33 for ; Mon, 10 Mar 2014 08:18:57 -0700 (PDT) Date: Mon, 10 Mar 2014 16:18:53 +0100 From: Stefan Hajnoczi Message-ID: <20140310151853.GE32400@stefanha-thinkpad.redhat.com> References: <1394230667-17037-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1394230667-17037-1-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH v2 0/5] w32: Reduce dependency on Windows API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, peter.maydell@linaro.org On Fri, Mar 07, 2014 at 11:17:42PM +0100, Stefan Weil wrote: > The first 4 patches reduce the number of files which depend on > windows.h by about 90 percent. > > This reduces the compilation time, allows > removing some hacks and avoids name space pollution. > > Patch 5 is optional and new here. > > Changes in v2: > > * Change name of new include file include/qemu/winapi.h > (suggested by Paolo Bonzini) > > * Don't replace Win32 data types in block/raw-aio.h > (suggested by Kevin Wolf) > > * Replace Win32 data types in central header files by > new QEMU data types instead of basic C data types > (suggested by Peter Maydell and Stefan Hajnoczi) > > [PATCH v2 1/5] w32: Add and use intermediate include file for windows.h > [PATCH v2 2/5] w32: Move inline function from header file to C source > [PATCH v2 3/5] w32: Reduce dependencies in sysemu/os-win32.h > [PATCH v2 4/5] w32: Replace Windows specific data types in common > [PATCH v2 5/5] block: Review include statements for winioctl.h Personally, I think the code was nicer without adding this indirection to avoid longer compile times. But then you're one of the few people who cares about Windows, so if it makes your life easier that's a good thing. Stefan