Use #ifdef to avoid warning about undefined macro.

This commit is contained in:
Diego E. 'Flameeyes' Pettenò 2009-01-22 23:38:07 +01:00
parent a257448ceb
commit 3e5d9fd37a
2 changed files with 2 additions and 2 deletions

View file

@ -239,7 +239,7 @@ int pa__init(pa_module*m) {
#ifdef HAVE_ALSA #ifdef HAVE_ALSA
if ((n = detect_alsa(m->core, just_one)) <= 0) if ((n = detect_alsa(m->core, just_one)) <= 0)
#endif #endif
#if HAVE_OSS #ifdef HAVE_OSS
if ((n = detect_oss(m->core, just_one)) <= 0) if ((n = detect_oss(m->core, just_one)) <= 0)
#endif #endif
#ifdef HAVE_SOLARIS #ifdef HAVE_SOLARIS

View file

@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#if HAVE_LIBSAMPLERATE #ifdef HAVE_LIBSAMPLERATE
#include <samplerate.h> #include <samplerate.h>
#endif #endif