aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch')
-rw-r--r--vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch b/vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch
new file mode 100644
index 0000000..b213ac8
--- /dev/null
+++ b/vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch
@@ -0,0 +1,19 @@
+--- a/meson.build
++++ b/meson.build
+@@ -90,8 +90,14 @@
+ gdk_pixbuf_conf.set('HAVE_ROUND', 1)
+ endif
+
+-if cc.has_function('lrint', dependencies: mathlib_dep)
+- gdk_pixbuf_conf.set('HAVE_LRINT', 1)
++if cc.get_id() == 'msvc'
++ if cc.has_function('lrint', dependencies: mathlib_dep, args: '-Oi-')
++ gdk_pixbuf_conf.set('HAVE_LRINT', 1)
++ endif
++else
++ if cc.has_function('lrint', dependencies: mathlib_dep)
++ gdk_pixbuf_conf.set('HAVE_LRINT', 1)
++ endif
+ endif
+
+ intl_dep = cc.find_library('intl', required: false)