Define png_sizeof() to allow compilation on 1.6.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36177 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2013-02-20 23:42:11 +00:00
parent 21464c08f1
commit 1e8942edec
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-02-21 Riccardo Mottola <rm@gnu.org>
* Source/NSBitmapImageRep+PNG.m
Define png_sizeof() to allow compilation on 1.6.
2013-02-19 Fred Kiefer <FredKiefer@gmx.de>
* Tools/make_services.m (main, CheckDirectory)

View file

@ -3,7 +3,7 @@
Methods for loading .png images.
Copyright (C) 2003-2011 Free Software Foundation, Inc.
Copyright (C) 2003-2013 Free Software Foundation, Inc.
Written by: Alexander Malmberg <alexander@malmberg.org>
Date: 2003-12-07
@ -48,6 +48,10 @@
#endif /* HAVE_LIBPNG */
#if !defined png_sizeof
#define png_sizeof(x) sizeof(x)
#endif
/* we import all the standard headers to allow compilation without PNG */
#import <Foundation/NSData.h>
#import <Foundation/NSDictionary.h>