[WINEALSA] Fix compilation issue with ALSA 0.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch fixes a compilation issue with ALSA 0.5 (reported by Carl Sopchak)
that appears when adding WaveIn support.


Bye.

Changelog :
Fix compilation issue with ALSA 0.5.

Christian Costa titan.costa@xxxxxxxxxx

Index: audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winealsa/audio.c,v
retrieving revision 1.28
diff -u -r1.28 audio.c
--- audio.c	12 Dec 2003 05:55:26 -0000	1.28
+++ audio.c	22 Dec 2003 18:23:21 -0000
@@ -3202,7 +3202,7 @@
 
 #endif
 
-#ifndef HAVE_ALSA
+#if !(defined(HAVE_ALSA) && ((SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9) || SND_LIB_MAJOR >= 1))
 
 /**************************************************************************
  * 				widMessage (WINEALSA.@)
@@ -3214,6 +3214,10 @@
     return MMSYSERR_NOTENABLED;
 }
 
+#endif
+
+#ifndef HAVE_ALSA
+
 /**************************************************************************
  * 				wodMessage (WINEALSA.@)
  */
@@ -3225,3 +3229,4 @@
 }
 
 #endif /* HAVE_ALSA */
+

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux