diff --git a/giflib/Makefile b/giflib/Makefile index eed071c..3a44637 100644 --- a/giflib/Makefile +++ b/giflib/Makefile @@ -22,7 +22,7 @@ GIF_INC ?= /usr/include USR_LIBS += 114135a4-6f6c-11d3-95bc-00104b8742df USR_LIBS_Linux += Xm Xt Xp Xtst X11 - USR_SYS_LIBS_Linux += pthread dl ungif gif + USR_SYS_LIBS_Linux += pthread dl gif USR_LIBS_Darwin += Xm Xt Xp Xtst X11 USR_SYS_LIBS_Darwin += pthread dl ungif gif diff --git a/giflib/gif.cc b/giflib/gif.cc index 9b59de0..a9be239 100644 --- a/giflib/gif.cc +++ b/giflib/gif.cc @@ -16,14 +16,6 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#if GIFLIB_MAJOR > 5 || GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 - #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif, NULL) - #define GIF_OPEN_FILE(gif) DGifOpenFileName(gif, NULL) -#else - #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif) - #define GIF_OPEN_FILE(gif) DGifOpenFileName(gif) -#endif - void printErrMsg ( const char *fileName, int lineNum, @@ -42,6 +34,14 @@ void printErrMsg ( #include "thread.h" +#if GIFLIB_MAJOR > 5 || GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 + #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif, NULL) + #define GIF_OPEN_FILE(gif) DGifOpenFileName(gif, NULL) +#else + #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif) + #define GIF_OPEN_FILE(gif) DGifOpenFileName(gif) +#endif + static jmp_buf g_jump_h; static void signal_handler (