[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Building QEMU CVS with DirectSound on MinGW broken
From: |
Robert Riebisch |
Subject: |
[Qemu-devel] Building QEMU CVS with DirectSound on MinGW broken |
Date: |
Sun, 01 Feb 2009 22:14:58 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (Windows/20081209) |
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 <address@hidden>
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/
- [Qemu-devel] Building QEMU CVS with DirectSound on MinGW broken,
Robert Riebisch <=