diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch | |
Diffstat (limited to 'vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch')
| -rw-r--r-- | vcpkg/ports/gdk-pixbuf/fix_build_error_windows.patch | 19 |
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) |