Redefine Object across the include of gif_lib.h .

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18341 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-01-08 22:31:40 +00:00
parent c807e165b4
commit 5cb7b4b8dc
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-01-08 23:26 Alexander Malmberg <alexander@malmberg.org>
* Source/NSBitmapImageRep+GIF.m: Re-#define Object across the
include of gif_lib.h . (Reported by Stefan Kleine Stegemann.)
2004-01-08 19:41 Alexander Malmberg <alexander@malmberg.org>
* configure.ac: Add a check for libungif.

View file

@ -30,7 +30,14 @@
#if HAVE_LIBUNGIF
/*
gif_lib.h (4.1.0b1, possibly other versions) uses Object as the name of an
argument to a function. This causes a conflict with Object declared by the
objective-c headers.
*/
#define Object GS_GifLib_Object
#include <gif_lib.h>
#undef Object
#include <Foundation/NSString.h>
#include <Foundation/NSData.h>