diff options
author | Max Kellermann <max@duempel.org> | 2008-10-26 21:58:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-26 21:58:37 +0100 |
commit | 0800c6f4ca36012b65e3cde825663adc1eafeae2 (patch) | |
tree | 5d0f24a02042c48a30d6b67920f77ef65e7e6215 /src/output/alsa_plugin.c | |
parent | 3dac99034afe14e61554f327329c11d32962ae04 (diff) | |
download | mpd-0800c6f4ca36012b65e3cde825663adc1eafeae2.tar.gz mpd-0800c6f4ca36012b65e3cde825663adc1eafeae2.tar.xz mpd-0800c6f4ca36012b65e3cde825663adc1eafeae2.zip |
output: don't compile plugins which are disabled
Don't compile the sources of disabled output plugins at all.
Diffstat (limited to 'src/output/alsa_plugin.c')
-rw-r--r-- | src/output/alsa_plugin.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c index 1845f1b76..e812e49fc 100644 --- a/src/output/alsa_plugin.c +++ b/src/output/alsa_plugin.c @@ -17,8 +17,10 @@ */ #include "../output_api.h" +#include "../utils.h" +#include "../log.h" -#ifdef HAVE_ALSA +#include <alsa/asoundlib.h> #define ALSA_PCM_NEW_HW_PARAMS_API #define ALSA_PCM_NEW_SW_PARAMS_API @@ -27,11 +29,6 @@ static const char default_device[] = "default"; #define MPD_ALSA_RETRY_NR 5 -#include "../utils.h" -#include "../log.h" - -#include <alsa/asoundlib.h> - typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer, snd_pcm_uframes_t size); @@ -437,8 +434,3 @@ const struct audio_output_plugin alsaPlugin = { .cancel = alsa_dropBufferedAudio, .close = alsa_closeDevice, }; - -#else /* HAVE ALSA */ - -DISABLED_AUDIO_OUTPUT_PLUGIN(alsaPlugin) -#endif /* HAVE_ALSA */ |