babl: fix building reference-fish without lcms2
authorØyvind Kolås <pippin@gimp.org>
Thu, 6 Dec 2018 21:34:34 +0000 (22:34 +0100)
committerØyvind Kolås <pippin@gimp.org>
Thu, 6 Dec 2018 21:34:34 +0000 (22:34 +0100)
babl/babl-fish-reference.c

index 6ef1c69990a76e5b96e85a3b7224f97786ce1a69..81aa9b20a592e3748b815cd3ef3c1b2812b9a3fa 100644 (file)
@@ -1017,9 +1017,12 @@ babl_fish_reference_process_double (const Babl *babl,
  else if (source_kind      == KIND_CMYK &&
           destination_kind == KIND_CMYK)
  {
-    if (source_space != destination_space &&
-        source_space->space.cmyk.lcms_profile &&
-        destination_space->space.cmyk.lcms_profile)
+    if (source_space != destination_space
+#if HAVE_LCMS
+        && source_space->space.cmyk.lcms_profile
+        && destination_space->space.cmyk.lcms_profile
+#endif
+ )
     {
 #if HAVE_LCMS