constify lcms2 some more

Change-Id: I969bca29072826db5e6fd26b9d5c945d289e89a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188324
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2025-07-25 13:56:46 +02:00
parent bf48944304
commit 7b35ff08ab
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
diff -ur lcms2.org/src/cmscnvrt.c lcms2/src/cmscnvrt.c
--- lcms2.org/src/cmscnvrt.c 2025-07-25 11:19:46.585033759 +0200
+++ lcms2/src/cmscnvrt.c 2025-07-25 11:19:55.829564148 +0200
@@ -79,7 +79,7 @@
// Built-in intents
-static cmsIntentsList DefaultIntents[] = {
+static const cmsIntentsList DefaultIntents[] = {
{ INTENT_PERCEPTUAL, "Perceptual", DefaultICCintents, &DefaultIntents[1] },
{ INTENT_RELATIVE_COLORIMETRIC, "Relative colorimetric", DefaultICCintents, &DefaultIntents[2] },
+1
View File
@@ -26,6 +26,7 @@ endif
$(eval $(call gb_UnpackedTarball_add_patches,lcms2,\
external/lcms2/lcms2-2.4-windows.patch \
external/lcms2/0001-Mark-some-tables-as-const.patch.1 \
external/lcms2/0002-mark-more-const.patch.1 \
))
# vim: set noet sw=4 ts=4: