From 614e4d4038b0670241c14401a1249537869663f2 Mon Sep 17 00:00:00 2001 From: Victor Forsiuk Date: Thu, 21 May 2026 11:47:32 +0300 Subject: [PATCH] Emergency fix for broken header file in libheif 1.22.0 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 596279c04856..954fd07fb6ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -295,6 +295,8 @@ jobs: cd - - name: Build and Install run: | + # Emergency fix for broken libheif header file. Should be removed when a fixed libheif package is available in MSYS2. + perl -pi -e 's/struct heif_bad_pixel { uint32_t row; uint32_t column; };/typedef struct heif_bad_pixel { uint32_t row; uint32_t column; } heif_bad_pixel;/g' /ucrt64/include/libheif/heif_properties.h cmake -E make_directory "${BUILD_DIR}" cmake -E make_directory "${INSTALL_PREFIX}" $(cygpath ${SRC_DIR})/.ci/ci-script.sh @@ -363,6 +365,8 @@ jobs: brew bundle --quiet || true - name: Build and Install run: | + # Emergency fix for broken libheif header file. Should be removed when a fixed libheif package is available in Homebrew. + perl -pi -e 's/struct heif_bad_pixel { uint32_t row; uint32_t column; };/typedef struct heif_bad_pixel { uint32_t row; uint32_t column; } heif_bad_pixel;/g' /opt/homebrew/include/libheif/heif_properties.h cmake -E make_directory "${BUILD_DIR}"; cmake -E make_directory "${INSTALL_PREFIX}"; ./src/.ci/ci-script.sh;