Patch: compile fix for no-alsa systems

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

 



Hello,

i don't know if a patch for this was already sent so i'm sending this
one. If HAVE_ALSA is undefined the wine default debug channel isn't
initialized but two functions are using TRACE's regardless of the status
of HAVE_ALSA.

License: LGPL, X11
Chnagelog:
	Michael Stefaniuc <mstefani@redhat.com>
	- compile fix for undefined HAVE_ALSA

bye
	michael
-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani@redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
Index: dlls/winmm/winealsa/midi.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winealsa/midi.c,v
retrieving revision 1.1
diff -u -r1.1 midi.c
--- dlls/winmm/winealsa/midi.c	15 Sep 2003 22:08:39 -0000	1.1
+++ dlls/winmm/winealsa/midi.c	16 Sep 2003 19:05:55 -0000
@@ -52,9 +52,9 @@
 #endif
 #include "wine/debug.h"
 
-#if defined(HAVE_ALSA) && ((SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9) || SND_LIB_MAJOR >= 1)
-
 WINE_DEFAULT_DEBUG_CHANNEL(midi);
+
+#if defined(HAVE_ALSA) && ((SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9) || SND_LIB_MAJOR >= 1)
 
 typedef struct {
     int			state;                  /* -1 disabled, 0 is no recording started, 1 in recording, bit 2 set if in sys exclusive recording */

Attachment: pgp00179.pgp
Description: PGP signature


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

  Powered by Linux