Skip to content

Commit

Permalink
Set SHOUTERR_RETRY to some value if it's not available
Browse files Browse the repository at this point in the history
This macro appeared in libshout 2.4.0.
  • Loading branch information
szpajder committed Nov 13, 2020
1 parent 0e771ec commit 6dd26fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions output.cpp
Expand Up @@ -28,6 +28,11 @@
#include <ogg/ogg.h>
#include <vorbis/vorbisenc.h>
#include <shout/shout.h>
// SHOUTERR_RETRY is available since libshout 2.4.0.
// Set it to an impossible value if it's not there.
#ifndef SHOUTERR_RETRY
#define SHOUTERR_RETRY (-255)
#endif
#include <lame/lame.h>
#ifdef PULSE
#include <pulse/pulseaudio.h>
Expand Down

0 comments on commit 6dd26fa

Please sign in to comment.