mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Cleaned up includes so that compilation without PNG works again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32014 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
18813674f2
commit
14328a34f3
1 changed files with 5 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
Methods for loading .png images.
|
||||
|
||||
Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
Copyright (C) 2003-2011 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Alexander Malmberg <alexander@malmberg.org>
|
||||
Date: 2003-12-07
|
||||
|
@ -29,14 +29,6 @@
|
|||
|
||||
#import "config.h"
|
||||
|
||||
#if HAVE_LIBPNG
|
||||
|
||||
#ifdef HAVE_LIBPNG_PNG_H
|
||||
#include <libpng/png.h>
|
||||
#else
|
||||
#include <png.h>
|
||||
#endif
|
||||
|
||||
#import <Foundation/NSData.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSException.h>
|
||||
|
@ -45,6 +37,10 @@
|
|||
#import "AppKit/NSGraphics.h"
|
||||
#import "NSBitmapImageRep+PNG.h"
|
||||
|
||||
#ifdef HAVE_LIBPNG
|
||||
|
||||
#include <png.h>
|
||||
|
||||
#if defined(PNG_FLOATING_POINT_SUPPORT)
|
||||
# define PNG_FLOATING_POINT 1
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue