Fix incorrect version check for libgif (#2936)

This commit is contained in:
PowerLay 2024-03-31 22:36:12 +03:00 committed by GitHub
parent 0af9e7a8db
commit f8bf6caef3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
// handle the differences in API between libgif v5 and older. // handle the differences in API between libgif v5 and older.
#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 #if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && defined(GIFLIB_MINOR) && GIFLIB_MINOR >= 1))
#define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS ,0 #define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS ,0
#else #else
#define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS #define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS