From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bus7E-0004YN-7v for qemu-devel@nongnu.org; Wed, 11 Aug 2004 08:22:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bus7C-0004Wg-9b for qemu-devel@nongnu.org; Wed, 11 Aug 2004 08:21:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bus7B-0004WK-Tj for qemu-devel@nongnu.org; Wed, 11 Aug 2004 08:21:58 -0400 Received: from [64.233.170.204] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bus32-0001ye-Ua for qemu-devel@nongnu.org; Wed, 11 Aug 2004 08:17:41 -0400 Received: by mproxy.gmail.com with SMTP id 78so332810rnl for ; Wed, 11 Aug 2004 05:17:40 -0700 (PDT) Message-ID: <76bfb9d2040811051758d52cce@mail.gmail.com> Date: Wed, 11 Aug 2004 08:17:40 -0400 From: Garth Dahlstrom Subject: Re: [Qemu-devel] Andrew Curtis' PCNet Patch built on MingW In-Reply-To: <-3725715442654674811@unknownmsgid> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <-3725715442654674811@unknownmsgid> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Antony T Curtis wrote: > There is no such SWSTYLE as 0x04 on the PC-Net chip I emulated. You > should be able to safely ignore this message. > > maybe the PACKED name conflicts with some existing symbol if you are > having to undef it... Can you find what the original definition of it > is? And perhaps I should call it PCN_PACKED maybe... I'm just taking a guess that's the cause, PACKED is defined in /includes/windef.h as the following: #ifdef __GNUC__ #define PACKED __attribute__((packed)) The line in pcnet.h: #define PACKED(A) A __attribute__ ((packed)) throws a PACKED redefined warning if I leave it as is... So in http://www.northern.ca/projects/qemu/qemu-0.6.0-mingw-pcnet-no_dhcp.zip I did: #ifdef __GNUC__ #ifdef __MINGW32__ //GED #undef PACKED #endif #define PACKED(A) A __attribute__ ((packed)) #else #error FixMe #endif which gets rid of the warnings, but may also break the code. -- Northern.CA ===-- http://www.northern.ca/ Canada's Search Engine