aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cximage-6.0/CxImage/tif_xfile.cpp6
-rw-r--r--lib/cximage-6.0/CxImage/ximatif.cpp2
-rw-r--r--lib/cximage-6.0/CxImage/ximatif.h4
3 files changed, 10 insertions, 2 deletions
diff --git a/lib/cximage-6.0/CxImage/tif_xfile.cpp b/lib/cximage-6.0/CxImage/tif_xfile.cpp
index ac92c954b0..133a6563d0 100644
--- a/lib/cximage-6.0/CxImage/tif_xfile.cpp
+++ b/lib/cximage-6.0/CxImage/tif_xfile.cpp
@@ -11,7 +11,11 @@
#if CXIMAGE_SUPPORT_TIF
+#ifdef _LINUX
+#include <tiffio.h>
+#else
#include "../tiff/tiffiop.h"
+#endif
#include "xfile.h"
@@ -92,8 +96,10 @@ _TIFFFdOpen(void* fd, const char* name, const char* mode)
(thandle_t) fd,
_tiffReadProcEx, _tiffWriteProcEx, _tiffSeekProcEx, _tiffCloseProcEx,
_tiffSizeProcEx, _tiffMapProcEx, _tiffUnmapProcEx);
+#ifndef _LINUX
if (tif)
tif->tif_fd = fd;
+#endif
return (tif);
}
diff --git a/lib/cximage-6.0/CxImage/ximatif.cpp b/lib/cximage-6.0/CxImage/ximatif.cpp
index f2b14d02aa..0018fa98f2 100644
--- a/lib/cximage-6.0/CxImage/ximatif.cpp
+++ b/lib/cximage-6.0/CxImage/ximatif.cpp
@@ -11,8 +11,6 @@
#define FIX_16BPP_DARKIMG // + VK: if uncomment, dark 16bpp images are fixed
-#include "../tiff/tiffio.h"
-
#define CVT(x) (((x) * 255L) / ((1L<<16)-1))
#define SCALE(x) (((x)*((1L<<16)-1))/255)
#define CalculateLine(width,bitdepth) (((width * bitdepth) + 7) / 8)
diff --git a/lib/cximage-6.0/CxImage/ximatif.h b/lib/cximage-6.0/CxImage/ximatif.h
index 8886316cd7..d1c8e8e3c0 100644
--- a/lib/cximage-6.0/CxImage/ximatif.h
+++ b/lib/cximage-6.0/CxImage/ximatif.h
@@ -23,7 +23,11 @@
#if CXIMAGE_SUPPORT_TIF
+#ifdef _LINUX
+#include <tiffio.h>
+#else
#include "../tiff/tiffio.h"
+#endif
class DLL_EXP CxImageTIF: public CxImage
{