Skip to content

Commit

Permalink
Fix incorrect version check for libgif (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerLay committed Mar 31, 2024
1 parent 0af9e7a commit f8bf6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlib/image_loader/load_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8bf6ca

Please sign in to comment.