Fix build: "#elif with no expression"
Unified · Split
| @@ -1,2 +1,2 @@ | |||
| 1 | #cmakedefine PULSEAUDIO_ENABLE | 1 | #cmakedefine01 PULSEAUDIO_ENABLE |
| 2 | #cmakedefine ALSA_ENABLE | 2 | #cmakedefine01 ALSA_ENABLE |
| @@ -19,11 +19,11 @@ · 18 unmodified lines | |||
| 19 | 19 | ||
| 20 | #include "raw.h" | 20 | #include "raw.h" |
| 21 | 21 | ||
| 22 | #ifdef PULSEAUDIO_ENABLE | 22 | #if PULSEAUDIO_ENABLE |
| 23 | #include "pulseaudio.h" | 23 | #include "pulseaudio.h" |
| 24 | #endif | 24 | #endif |
| 25 | 25 | ||
| 26 | #ifdef ALSA_ENABLE | 26 | #if ALSA_ENABLE |
| 27 | #include "alsa.h" | 27 | #include "alsa.h" |
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
| @@ -108,7 +108,7 @@ int main(int argc, char*argv[]) { · 78 unmodified lines | |||
| 108 | // Command line options | 108 | // Command line options |
| 109 | enum receiver_type receiver_mode = Multicast; | 109 | enum receiver_type receiver_mode = Multicast; |
| 110 | 110 | ||
| 111 | #ifdef PULSEAUDIO_ENABLE | 111 | #if PULSEAUDIO_ENABLE |
| 112 | enum output_type output_mode = Pulseaudio; | 112 | enum output_type output_mode = Pulseaudio; |
| 113 | #elif ALSA_ENABLE | 113 | #elif ALSA_ENABLE |
| 114 | enum output_type output_mode = Alsa; | 114 | enum output_type output_mode = Alsa; |
| @@ -180,7 +180,7 @@ int main(int argc, char*argv[]) { · 65 unmodified lines | |||
| 180 | // initialize output | 180 | // initialize output |
| 181 | switch (output_mode) { | 181 | switch (output_mode) { |
| 182 | case Pulseaudio: | 182 | case Pulseaudio: |
| 183 | #ifdef PULSEAUDIO_ENABLE | 183 | #if PULSEAUDIO_ENABLE |
| 184 | if (verbosity) fprintf(stderr, "Using Pulseaudio output\n"); | 184 | if (verbosity) fprintf(stderr, "Using Pulseaudio output\n"); |
| 185 | if (pulse_output_init(target_latency_ms, stream_name) != 0) { | 185 | if (pulse_output_init(target_latency_ms, stream_name) != 0) { |
| 186 | return 1; | 186 | return 1; |
| @@ -192,7 +192,7 @@ int main(int argc, char*argv[]) { · 5 unmodified lines | |||
| 192 | #endif | 192 | #endif |
| 193 | break; | 193 | break; |
| 194 | case Alsa: | 194 | case Alsa: |
| 195 | #ifdef ALSA_ENABLE | 195 | #if ALSA_ENABLE |
| 196 | if (verbosity) fprintf(stderr, "Using ALSA output\n"); | 196 | if (verbosity) fprintf(stderr, "Using ALSA output\n"); |
| 197 | if (alsa_output_init(target_latency_ms, alsa_device) != 0) { | 197 | if (alsa_output_init(target_latency_ms, alsa_device) != 0) { |
| 198 | return 1; | 198 | return 1; |