From f8bf6caef3fab6a581f4f3fc616367b61680278f Mon Sep 17 00:00:00 2001 From: PowerLay <34715449+PowerLay@users.noreply.github.com> Date: Sun, 31 Mar 2024 22:36:12 +0300 Subject: [PATCH] Fix incorrect version check for libgif (#2936) --- dlib/image_loader/load_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/image_loader/load_image.h b/dlib/image_loader/load_image.h index 4f414b600..60c239342 100644 --- a/dlib/image_loader/load_image.h +++ b/dlib/image_loader/load_image.h @@ -71,7 +71,7 @@ namespace dlib // ---------------------------------------------------------------------------------------- // 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 #else #define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS