We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af9e7a commit f8bf6caCopy full SHA for f8bf6ca
dlib/image_loader/load_image.h
@@ -71,7 +71,7 @@ namespace dlib
71
// ----------------------------------------------------------------------------------------
72
73
// handle the differences in API between libgif v5 and older.
74
-#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && defined(GIFLIB_MINOR) && GIFLIB_MINOR >= 1))
75
#define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS ,0
76
#else
77
#define DLIB_GIFLIB_HANDLE_DIFF_VERSIONS
0 commit comments