From e31a936e3e9b26cee35f51b6bd822803539c59db Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 3 Mar 2015 12:14:24 +0800 Subject: [PATCH] gtkswitch.c: Fix Build on C89 Compilers This file now uses round(), which was not available until C99, so include fallback-c89.c instead of math.h, which includes math.h and does a fallback implementation of round(). --- gtk/gtkswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index 1f5692c8bc..1ab12b5d92 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -53,7 +53,7 @@ #include "gtkactionhelper.h" #include "gtkwidgetprivate.h" -#include +#include "fallback-c89.c" #define DEFAULT_SLIDER_WIDTH (36)