mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 04:31:00 +00:00
Minor modifications for Win32
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@1856 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e6933ae6b8
commit
5f53cbb482
2 changed files with 8 additions and 4 deletions
|
@ -63,7 +63,7 @@
|
||||||
/* 8-bit RGB will be converted to 24-bit by the tiff routines, so account
|
/* 8-bit RGB will be converted to 24-bit by the tiff routines, so account
|
||||||
for this. */
|
for this. */
|
||||||
space = nil;
|
space = nil;
|
||||||
#ifdef HAVE_LIBTIFF
|
#ifdef HAVE_TIFF
|
||||||
switch(info->photoInterp)
|
switch(info->photoInterp)
|
||||||
{
|
{
|
||||||
case PHOTOMETRIC_MINISBLACK: space = NSDeviceWhiteColorSpace; break;
|
case PHOTOMETRIC_MINISBLACK: space = NSDeviceWhiteColorSpace; break;
|
||||||
|
|
|
@ -49,10 +49,14 @@
|
||||||
* OF THIS SOFTWARE.
|
* OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <gnustep/base/preface.h>
|
||||||
|
#include <gnustep/gui/config.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifndef __WIN32__
|
||||||
#include <unistd.h> /* for L_SET, etc definitions */
|
#include <unistd.h> /* for L_SET, etc definitions */
|
||||||
|
#endif /* !__WIN32__ */
|
||||||
#include <AppKit/nsimage-tiff.h>
|
#include <AppKit/nsimage-tiff.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -63,7 +67,7 @@ typedef struct {
|
||||||
realloc_data_callback* realloc_data;
|
realloc_data_callback* realloc_data;
|
||||||
} chandle_t;
|
} chandle_t;
|
||||||
|
|
||||||
#ifdef HAVE_LIBTIFF
|
#ifdef HAVE_TIFF
|
||||||
|
|
||||||
/* Client functions that provide reading/writing of data for libtiff */
|
/* Client functions that provide reading/writing of data for libtiff */
|
||||||
static tsize_t
|
static tsize_t
|
||||||
|
@ -431,7 +435,7 @@ NSTiffGetColormap(TIFF* image)
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* HAVE_LIBTIFF */
|
#else /* HAVE_TIFF */
|
||||||
|
|
||||||
TIFF*
|
TIFF*
|
||||||
NSTiffOpenData(char* data, long size, const char* mode,
|
NSTiffOpenData(char* data, long size, const char* mode,
|
||||||
|
@ -470,4 +474,4 @@ NSTiffGetColormap(TIFF* image)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* not HAVE_LIBTIFF */
|
#endif /* not HAVE_TIFF */
|
Loading…
Add table
Add a link
Reference in a new issue