-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg baseline][gdk-pixbuf] Fix build error on windows (#17528)
Co-authored-by: nicole mazzuca <[email protected]>
- Loading branch information
1 parent
b9cd2a7
commit e01bb32
Showing
5 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters