]> git.eshelyaron.com Git - emacs.git/commit
rsvg_handle_get_dimensions is deprecated in 2.52.0
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Nov 2021 18:51:46 +0000 (11:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Nov 2021 18:53:17 +0000 (11:53 -0700)
commit133026c362eb27191d992fbf35727550804bfc96
tree0a8590a4398e615960955dc1309ad88480f399cc
parentc1865384d736cf290971e049a9d2f7869c7396da
rsvg_handle_get_dimensions is deprecated in 2.52.0

In Bug#44655#32 (2020-11-19) it was reported that
rsvg_handle_get_dimensions was not deprecated.  However, it became
deprecated in librsvg 2.52.0 (2021-09-15), and because of this Emacs
builds with --enable-gcc-warnings fail in Fedora 35 (2025-11-02)
with the diagnostic “‘rsvg_handle_get_dimensions’ is deprecated:
Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead
[-Werror=deprecated-declarations]”.
* src/image.c (rsvg_handle_get_dimensions): Define as a DLL
function only if < librsvg 2.46.0, since it’s not used
in 2.46.0 or later.
(svg_load_image): Use rsvg_handle_get_dimensions only if librsvg <
2.46.0, since it isn’t needed if >= 2.46.0.
src/image.c