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