diff --git a/Source/NSBitmapImageRep.m b/Source/NSBitmapImageRep.m index 2621b70e1..74f401520 100644 --- a/Source/NSBitmapImageRep.m +++ b/Source/NSBitmapImageRep.m @@ -63,7 +63,7 @@ /* 8-bit RGB will be converted to 24-bit by the tiff routines, so account for this. */ space = nil; -#ifdef HAVE_LIBTIFF +#ifdef HAVE_TIFF switch(info->photoInterp) { case PHOTOMETRIC_MINISBLACK: space = NSDeviceWhiteColorSpace; break; diff --git a/Source/tiff.c b/Source/tiff.m similarity index 98% rename from Source/tiff.c rename to Source/tiff.m index badfb7102..e11d13871 100644 --- a/Source/tiff.c +++ b/Source/tiff.m @@ -49,10 +49,14 @@ * OF THIS SOFTWARE. */ +#include +#include #include #include #include +#ifndef __WIN32__ #include /* for L_SET, etc definitions */ +#endif /* !__WIN32__ */ #include typedef struct { @@ -63,7 +67,7 @@ typedef struct { realloc_data_callback* realloc_data; } chandle_t; -#ifdef HAVE_LIBTIFF +#ifdef HAVE_TIFF /* Client functions that provide reading/writing of data for libtiff */ static tsize_t @@ -431,7 +435,7 @@ NSTiffGetColormap(TIFF* image) return map; } -#else /* HAVE_LIBTIFF */ +#else /* HAVE_TIFF */ TIFF* NSTiffOpenData(char* data, long size, const char* mode, @@ -470,4 +474,4 @@ NSTiffGetColormap(TIFF* image) return NULL; } -#endif /* not HAVE_LIBTIFF */ +#endif /* not HAVE_TIFF */