diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-03-03 12:14:24 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-03-03 12:14:24 +0800 |
commit | e31a936e3e9b26cee35f51b6bd822803539c59db (patch) | |
tree | 36f505c7faae7a82a05097de80529d49be0f43e2 /gtk/gtkswitch.c | |
parent | 32c0c6fee0ddc7333991db1ae772ebd33fe7a12c (diff) | |
download | gtk+-e31a936e3e9b26cee35f51b6bd822803539c59db.tar.gz |
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().
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r-- | gtk/gtkswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <math.h> +#include "fallback-c89.c" #define DEFAULT_SLIDER_WIDTH (36) |