From: Tsuda Kageyu Date: Thu, 27 Aug 2015 16:38:09 +0000 (+0900) Subject: Check if QT_VERSION macro is defined. X-Git-Tag: v1.10~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf45cfd84ae7a0db572a2ee96f42eed660b1eecc;p=taglib Check if QT_VERSION macro is defined. --- diff --git a/taglib/toolkit/tstring.h b/taglib/toolkit/tstring.h index 5a705ada..59611ab0 100644 --- a/taglib/toolkit/tstring.h +++ b/taglib/toolkit/tstring.h @@ -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)