summaryrefslogtreecommitdiff
path: root/config.tests/alsa
diff options
context:
space:
mode:
authorLisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>2016-03-05 10:36:42 -0300
committerLisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>2016-03-10 12:42:42 +0000
commit680cc0c97431de03487206fee575fa89c24b8842 (patch)
tree44bc6fba02f90c810627d56f209d29ebe536d6f0 /config.tests/alsa
parent77c9ab4a3871110c6fb569c4e7b17181867c17ad (diff)
downloadqtmultimedia-680cc0c97431de03487206fee575fa89c24b8842.tar.gz
ALSA: simplify checking the available version.
Make use of SND_LIB_VERSION instead of SND_LIB_[MAJOR MINOR SUBMINOR] in order to simplify the tests. Task-number: QTBUG-51681 Change-Id: Ib9f28ff15ddc643cc426ded3a5779fb4ff651139 Reviewed-by: Dmitry Shachnev <mitya57@gmail.com> Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'config.tests/alsa')
-rw-r--r--config.tests/alsa/alsatest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/alsa/alsatest.cpp b/config.tests/alsa/alsatest.cpp
index 1b59cb17b..0b45819b6 100644
--- a/config.tests/alsa/alsatest.cpp
+++ b/config.tests/alsa/alsatest.cpp
@@ -32,7 +32,7 @@
****************************************************************************/
#include <alsa/asoundlib.h>
-#if (!(SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 10)))
+#if SND_LIB_VERSION < 0x1000a // 1.0.10
#error "Alsa version found too old, require >= 1.0.10"
#endif