dlls/winmm/wineoss/audio.c portability breakage

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Sun Mar 16 03:12:42 CST 2003


On Sat, 15 Mar 2003, Alexandre Julliard wrote:
> I added a couple of #ifdefs, it's not really the right solution but it
> should hopefully get you going. Let me know if it still doesn't work
> for you.

It builds like a charm now, thanks!

The patch below is a most minor followup to avoid (warnings on) unused
variables.

Gerald

ChangeLog:
Avoid unused variables on systems without SOUND_MIXER_INFO.

Index: audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.80
diff -u -3 -p -r1.80 audio.c
--- audio.c	15 Mar 2003 22:23:27 -0000	1.80
+++ audio.c	16 Mar 2003 09:09:56 -0000
@@ -491,7 +491,10 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE*
 {
     int rc,arg;
     int f,c,r;
+#ifdef SOUND_MIXER_INFO
     int mixer;
+#endif
+
     TRACE("(%p) %s\n", ossdev, ossdev->dev_name);

     if (OSS_OpenDevice(ossdev, O_WRONLY, NULL, 0,-1,-1,-1) != 0) return FALSE;
@@ -626,7 +629,10 @@ static BOOL OSS_WaveInInit(OSS_DEVICE* o
 {
     int rc,arg;
     int f,c,r;
+#ifdef SOUND_MIXER_INFO
     int mixer;
+#endif
+
     TRACE("(%p) %s\n", ossdev, ossdev->dev_name);

     if (OSS_OpenDevice(ossdev, O_RDONLY, NULL, 0,-1,-1,-1) != 0) return FALSE;



More information about the wine-devel mailing list