use ZSTD_VERSION_NUMBER to check ZSTD version in qbytearray source file

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-01-16 00:34:29 +00:00
parent c44ce33b57
commit 4b6b6863ff

View file

@ -55,7 +55,7 @@
#include <zstd_errors.h>
// ZSTD_getErrorString and ZSTD_getErrorCode are not exported in versions prior to v1.1.3
#if !defined(QT_VISIBILITY_AVAILABLE) || (ZSTD_VERSION_MAJOR + ZSTD_VERSION_MINOR + ZSTD_VERSION_RELEASE) >= 5
#if !defined(QT_VISIBILITY_AVAILABLE) || (ZSTD_VERSION_NUMBER >= 10103)
# define QT_USE_ZSTD_ERROR
#endif