2021-04-29 03:06:01 +08:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2022-04-28 22:53:44 +00:00
|
|
|
@@ -90,8 +90,14 @@
|
2021-04-29 03:06:01 +08:00
|
|
|
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
|
|
|
|
|
2022-04-28 22:53:44 +00:00
|
|
|
intl_dep = cc.find_library('intl', required: false)
|