diff --git a/src/imageio/imageio_dng.c b/src/imageio/imageio_dng.c index 4ba764a8e4bf..5da1fa350213 100644 --- a/src/imageio/imageio_dng.c +++ b/src/imageio/imageio_dng.c @@ -36,6 +36,11 @@ #include #endif +// fallback for libtiff < 4.6 +#ifndef TIFFTAG_PREVIEWCOLORSPACE +#define TIFFTAG_PREVIEWCOLORSPACE 50970 +#endif + // DNG uses SRATIONAL / RATIONAL for matrix and WB tags. libtiff accepts // these as float/double arrays and handles the conversion; we just pass // the values as double