From 168454c5edd392b311c29d8284491b81c5e4c6cb Mon Sep 17 00:00:00 2001 From: Jarrad Hope Date: Wed, 31 Dec 2025 17:38:22 -0500 Subject: [PATCH] libjpeg-turbo: fix mingw-boolean.patch preprocessor balance mingw-boolean.patch was missing a closing #endif, which caused an unbalanced preprocessor block and broke MinGW builds. Fix the patch so it applies cleanly and the HAVE_BOOLEAN logic stays balanced. --- pkgs/by-name/li/libjpeg_turbo/mingw-boolean.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libjpeg_turbo/mingw-boolean.patch b/pkgs/by-name/li/libjpeg_turbo/mingw-boolean.patch index e3e6abfc95cb..c68ee5afcfb6 100644 --- a/pkgs/by-name/li/libjpeg_turbo/mingw-boolean.patch +++ b/pkgs/by-name/li/libjpeg_turbo/mingw-boolean.patch @@ -2,7 +2,7 @@ Ported to updated libjpeg-turbo from https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-libjpeg-turbo/jpeg-typedefs.patch --- a/src/jmorecfg.h +++ b/src/jmorecfg.h -@@ -200,6 +200,13 @@ +@@ -200,6 +200,14 @@ */ #ifndef HAVE_BOOLEAN @@ -15,4 +15,5 @@ https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-libjpeg-turbo/jpeg +#if !defined(HAVE_BOOLEAN) && !defined(__RPCNDR_H__) typedef int boolean; #endif ++#endif #ifndef FALSE /* in case these macros already exist */