strk/gnash — pull request #2 by 42f87d89 (2014-09-10 20:33:36+00:00)
Title: Fix dgif close file

So in giflib5.1 the function DGifCloseFile takes an extra argument for an error code.
I used some preprocessor to make this work when compiling against giflib5.1.
My changes will not affect anyone in any way other than making gnash work with giflib5.1

While it is not a great idea to give a nullptr to the function, in giflib 5.1 nothing bad can happen, since they check for that before using the value you passed.