]> granicus.if.org Git - taglib/commitdiff
Check if QT_VERSION macro is defined.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 27 Aug 2015 16:38:09 +0000 (01:38 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 27 Aug 2015 16:38:09 +0000 (01:38 +0900)
taglib/toolkit/tstring.h

index 5a705ada90f99c41dc6b743f181c9fccfbee4730..59611ab0a8c4def5fc80a843620c5d65a1755efd 100644 (file)
@@ -42,7 +42,7 @@
  * conversion happening in the background
  */
 
-#if QT_VERSION >= 0x040000
+#if defined(QT_VERSION) && (QT_VERSION >= 0x040000)
 #define QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
 #else
 #define QStringToTString(s) TagLib::String(s.utf8().data(), TagLib::String::UTF8)