Skip to content

Commit f8bf6ca

Browse files
authored
Fix incorrect version check for libgif (#2936)
1 parent 0af9e7a commit f8bf6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlib/image_loader/load_image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ namespace dlib
7171
// ----------------------------------------------------------------------------------------
7272

7373
// handle the differences in API between libgif v5 and older.
74-
#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
74+
#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && defined(GIFLIB_MINOR) && GIFLIB_MINOR >= 1))
7575
#define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS ,0
7676
#else
7777
#define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS

0 commit comments

Comments
 (0)