#include <config.h>
-#ifdef HAVE_LCMS
+#if HAVE_LCMS
/*** color support enabled ***/
+#include <cstdint>
+#include <cstring>
#include <vector>
-#ifdef HAVE_LCMS2
-#include <lcms2.h>
+#include <glib-object.h>
+
+#if HAVE_LCMS2
+# include <lcms2.h>
#else
-#include <lcms.h>
+# include <lcms.h>
#endif
#include "debug.h"
if (init_done) return;
init_done = TRUE;
-#ifndef HAVE_LCMS2
+#if !HAVE_LCMS2
cmsErrorAction(LCMS_ERROR_IGNORE);
#endif
}
static cmsHPROFILE color_man_create_adobe_comp()
{
/* ClayRGB1998 is AdobeRGB compatible */
-#include "ClayRGB1998_icc.h"
+#include "ClayRGB1998_icc.h" // IWYU pragma: keep
return cmsOpenProfileFromMem(ClayRGB1998_icc, ClayRGB1998_icc_len);
}
case COLOR_PROFILE_FILE:
if (profile)
{
-#ifdef HAVE_LCMS2
+#if HAVE_LCMS2
char buffer[20];
buffer[0] = '\0';
cmsGetProfileInfoASCII(profile, cmsInfoDescription, "en", "US", buffer, 20);
color_man_cache_reset();
}
-#ifdef HAVE_HEIF
+#if HAVE_HEIF
#include <cmath>
#include <libheif/heif.h>