Received: from eggs.gnu.org ([2001:4830:134:3::10]:38264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXlx-0000H8-14 for qemu-devel@nongnu.org; Wed, 26 Feb 2014 01:15:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIXlo-0005uf-KZ for qemu-devel@nongnu.org; Wed, 26 Feb 2014 01:15:12 -0500 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=55556 helo=v220110690675601.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXlo-0005qY-Eu for qemu-devel@nongnu.org; Wed, 26 Feb 2014 01:15:04 -0500 Message-ID: <530D865A.3030605@weilnetz.de> Date: Wed, 26 Feb 2014 07:14:50 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1393174935-11750-1-git-send-email-sw@weilnetz.de> <1393174935-11750-10-git-send-email-sw@weilnetz.de> <530B4429.1020307@suse.de> <530BD0CE.5070304@weilnetz.de> <530C5650.1060502@suse.de> In-Reply-To: <530C5650.1060502@suse.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable 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: =?ISO-8859-15?Q?Andreas_F=E4rber?= , qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Maydell , Stefan Hajnoczi , Anthony Liguori Am 25.02.2014 09:37, schrieb Andreas F=E4rber: > Am 25.02.2014 00:07, schrieb Stefan Weil: [...] >>> I had moved the field unchanged from another header, I believe. I don= 't >>> think this is a good change (assuming the Windows API is still using >>> this type and not void*), especially since it's #ifdef'ed anyway. >> Please see my mail to Kevin (which will be sent in a moment). > My opinion still stands. You can easily add "typedef void * HANDLE;" to > qemu-typedefs.h or osdep.h to retain telling type names, in this case > explaining why the variable is called "hThread" - h for "HANDLE". > > Regards, > Andreas I'm not sure whether I fully understand what you say. Yes, adding a typedef for HANDLE or LONG is easy. I decided against that solution because it is nearly impossible to avoid conflicts with the typedefs pulled by windows.h. The QEMU typedef for HANDLE would have to be protected by conditional compilation, and windows.h would have to be included before that code. I am afraid that there will be lots of build breakages in the future simply because people usually don't test with MinGW and we have no simple rules how include statements should be ordere= d. Stefan