1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 16:02:39 +01:00

- media-sound/mixxx: fix build without libshout

This commit is contained in:
2015-11-23 12:25:09 +00:00
parent a5bff5c387
commit c8bba3702b
3 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
diff --git a/src/util/version.cpp b/src/util/version.cpp
index 57203ed..77eee0e 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.