From 6cf729765392c94b02aeb0879a8fb0286934ef4d Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 28 Aug 2018 17:28:23 +0800 Subject: [PATCH] gtk/gtkeventcontrollerscroll.c: Include fallback-c89.c ... instead of just math.h, as it uses the C99 function trunc(). This is so that the code builds on pre-C99 compilers. --- gtk/gtkeventcontrollerscroll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkeventcontrollerscroll.c b/gtk/gtkeventcontrollerscroll.c index 73848cd6e5..314be1b708 100644 --- a/gtk/gtkeventcontrollerscroll.c +++ b/gtk/gtkeventcontrollerscroll.c @@ -60,8 +60,6 @@ **/ #include "config.h" -#include "math.h" - #include "gtkintl.h" #include "gtkwidget.h" #include "gtkeventcontrollerprivate.h" @@ -70,6 +68,8 @@ #include "gtkmarshalers.h" #include "gtkprivate.h" +#include "fallback-c89.c" + #define SCROLL_CAPTURE_THRESHOLD_MS 150 typedef struct