mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 21:28:59 +08:00
e01bb32836
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
22 lines
690 B
Diff
22 lines
690 B
Diff
diff --git a/meson.build b/meson.build
|
|
index b39c55d..4b050c7 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -89,8 +89,14 @@ if cc.has_function('round', dependencies: mathlib_dep)
|
|
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
|
|
|
|
if cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>')
|