diff --git a/bob/io/image/include/bob.io.image/config.h b/bob/io/image/include/bob.io.image/config.h
index 9ba23c4712bd599e749eb10ee3a0ee9d6ecd3162..0f43583c6ba05056f02c497064ade744a6f60434 100644
--- a/bob/io/image/include/bob.io.image/config.h
+++ b/bob/io/image/include/bob.io.image/config.h
@@ -90,7 +90,7 @@
 #ifdef HAVE_GIFLIB
   static PyObject* giflib_version() {
   #ifdef GIFLIB_VERSION
-   return Py_BuildValue("s", GIF_LIB_VERSION);
+   return Py_BuildValue("s", GIFLIB_VERSION);
   #else
     boost::format f("%s.%s.%s");
     f % BOOST_PP_STRINGIZE(GIFLIB_MAJOR) % BOOST_PP_STRINGIZE(GIFLIB_MINOR) % BOOST_PP_STRINGIZE(GIFLIB_RELEASE);