Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTkpT-0001YN-Ii for qemu-devel@nongnu.org; Sun, 01 Feb 2009 17:30:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTkpQ-0001Xm-V2 for qemu-devel@nongnu.org; Sun, 01 Feb 2009 17:30:14 -0500 Received: from [199.232.76.173] (port=43676 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTkpQ-0001Xj-Rj for qemu-devel@nongnu.org; Sun, 01 Feb 2009 17:30:12 -0500 Received: from bay0-omc2-s16.bay0.hotmail.com ([65.54.246.152]:6459) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTkpQ-0004U7-6w for qemu-devel@nongnu.org; Sun, 01 Feb 2009 17:30:12 -0500 Message-ID: Message-Id: <1D432B39-17C0-4F1C-971B-255F015A10AE@hotmail.com> From: C.W. Betts In-Reply-To: <498610D2.5050603@bttr-software.de> Content-Type: multipart/alternative; boundary=Apple-Mail-9--330362291 Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Qemu-devel] Building QEMU CVS with DirectSound on MinGW broken Date: Sun, 1 Feb 2009 15:29:51 -0700 References: <498610D2.5050603@bttr-software.de> 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, Robert Riebisch --Apple-Mail-9--330362291 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit If you are using CVS, please note that it is not being maintained. Please use Subversion(SVN) instead. On Feb 1, 2009, at 2:14 PM, Robert Riebisch wrote: > Hi! > > I'm getting this error: > c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/rpcdce.h: > 369: > error: syntax error before "__attribute__" > > I was able to fix this by moving inclusion of `dsound.h' above that of > `qemu-common.h'. The real cause seems to be "#define noreturn > __attribute__ ((__noreturn__))" in `qemu-common.h'. This has been > added > in r6303 and "fixed" in r6330. > > Here's my patch for demonstration: > *** > --- dsoundaudio.c.orig Wed Dec 03 23:48:44 2008 > +++ dsoundaudio.c Sun Feb 01 21:48:59 2009 > @@ -26,6 +26,8 @@ > * SEAL 1.07 by Carlos 'pel' Hasan was used as documentation > */ > > +#include > + > #include "qemu-common.h" > #include "audio.h" > > @@ -35,8 +37,6 @@ > #define WIN32_LEAN_AND_MEAN > #include > #include > -#include > -#include > > /* #define DEBUG_DSOUND */ > > *** > > Signed-off-by: Robert Riebisch > > I've just removed `objbase.h', because it will be included with > `dsound.h' already. > > Robert Riebisch > P.S. I'm using 2002 `directx-devel.tar.gz' from the SDL project. > -- > BTTR Software > http://www.bttr-software.de/ > > --Apple-Mail-9--330362291 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable If you are using CVS, please = note that it is not being maintained.  Please use Subversion(SVN) = instead.
On Feb 1, 2009, at 2:14 PM, Robert Riebisch = wrote:

Hi!

I'm getting this = error:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/rpcdce= h:369:
error: syntax error before "__attribute__"

I was able = to fix this by moving inclusion of `dsound.h' above that = of
`qemu-common.h'. The real cause seems to be "#define = noreturn
__attribute__ ((__noreturn__))" in `qemu-common.h'. This has = been added
in r6303 and "fixed" in r6330.

Here's my patch for = demonstration:
***
--- dsoundaudio.c.orig Wed Dec = 03 23:48:44 2008
+++ dsoundaudio.c Sun Feb 01 21:48:59 2009
@@ = -26,6 +26,8 @@
 * SEAL 1.07 by Carlos 'pel' Hasan was used as = documentation
 */

+#include <dsound.h>
+
= #include "qemu-common.h"
#include "audio.h"

@@ -35,8 +37,6 = @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
= #include <mmsystem.h>
-#include <objbase.h>
-#include = <dsound.h>

/* #define DEBUG_DSOUND = */

***

Signed-off-by: Robert Riebisch <rr@bttr-software.de>

I've = just removed `objbase.h', because it will be included with
`dsound.h' = already.

Robert Riebisch
P.S. I'm using 2002 = `directx-devel.tar.gz' from the SDL project.
--
BTTR = Software
http://www.bttr-software.de/
=


= --Apple-Mail-9--330362291--