On 04/02/2017, John Emmas via gtk-devel-list <gtk-devel-list@gnome.org> wrote:
> Commit #61e3edeb79 (6th Jan 2017) introduced these 2 calls in
> 'gdk-pixbuf/pixops/pixops.c' (at lines 1847 and 1848):-
>
>      tmp_width = lrint (src_width * prescale_x);
>      tmp_height = lrint (src_height * prescale_y);
>
> AFAIK Microsoft's MSVC only introduced lrint() in VS2015 - so for those
> of us building with an earlier version the above code won't link any
> more.  I took a quick look through glib, gtk+ (v2) and gdk-pixbuf but I
> can't see lrint getting used anywhere else.  Any chance of a fix?  Thanks,

Thanks. The quick fix is to replace them with

      tmp_width = (int) (src_width * prescale_x + 0.5);
      tmp_height = (int) (src_height * prescale_y + 0.5);

Cheers

    M
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to