diff options
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) |