summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Guglielmi <david.guglielmi@gmail.com>2015-11-23 14:12:55 +0100
committerDavid Guglielmi <david.guglielmi@gmail.com>2015-11-23 18:13:59 +0100
commit3f16f145bf6825aed91c3f62cf4a8bb07c98a3c4 (patch)
tree3e770a789993a2b2bb92980c1dbb418120b4fb98 /src
parent11ae5a3a118adcd239e880c3bc94905cfe1738c0 (diff)
Fix build when shoutcast is disabled
Fix: lin64_build/util/version.o: In function `Version::dependencyVersions()': /var/tmp/portage/media-sound/mixxx-1.12.9999/work/mixxx-1.12.9999/src/util/version.cpp:92: undefined reference to `shout_version' collect2: error: ld returned 1 exit status
Diffstat (limited to 'src')
-rw-r--r--src/util/version.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/version.cpp b/src/util/version.cpp
index 57203ed9ce..d02d389127 100644
--- a/src/util/version.cpp
+++ b/src/util/version.cpp
@@ -12,7 +12,9 @@
#ifdef WIN64
#define WIN32
#endif
+#ifdef __SHOUTCAST__
#include <shout/shout.h>
+#endif
#ifdef WIN64
#undef WIN32
#endif
@@ -88,8 +90,10 @@ QStringList Version::dependencyVersions() {
result
// Should be accurate.
<< QString("Qt: %1").arg(qVersion())
+#ifdef __SHOUTCAST__
// Should be accurate.
<< QString("libshout: %1").arg(shout_version(NULL, NULL, NULL))
+#endif
// The version of the RubberBand headers Mixxx was compiled with.
<< QString("RubberBand: %1").arg(RUBBERBAND_VERSION)
// The version of the SoundTouch headers Mixxx was compiled with.