summaryrefslogtreecommitdiff
path: root/gtk/gtkborderimage.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2011-08-19 14:26:52 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2011-08-20 11:17:44 +0800
commitad73ed298d26a934b587b4703e69f08f8c77d2eb (patch)
tree92a5e47a9aa85416af77604a2cc618c67b8bce20 /gtk/gtkborderimage.c
parentdb3fecc5b9a06af7b015b241b8ee735b65f786ea (diff)
downloadgtk+-ad73ed298d26a934b587b4703e69f08f8c77d2eb.tar.gz
Include C89 fallback code
gtk/gtkborderimage.c, gtk/gtklabel.c and gtk/gtkstyleproperty.c call round() and/or rint(), which was only available in C99 compilers. This adds the inclusion of the fallback implementation (gtk/fallback-c89.c) to define these functions if they are not initially made available by the compiler. Also remove the rint() implementation in gtk/gtklabel.c as it is now in the fallback implmentation.
Diffstat (limited to 'gtk/gtkborderimage.c')
-rw-r--r--gtk/gtkborderimage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkborderimage.c b/gtk/gtkborderimage.c
index 4f6ded6aa1..d5510ab5d7 100644
--- a/gtk/gtkborderimage.c
+++ b/gtk/gtkborderimage.c
@@ -28,6 +28,11 @@
#include "gtkborderimageprivate.h"
+/* this is in case round() is not provided by the compiler,
+ * such as in the case of C89 compilers, like MSVC
+ */
+#include "fallback-c89.c"
+
G_DEFINE_BOXED_TYPE (GtkBorderImage, _gtk_border_image,
_gtk_border_image_ref, _gtk_border_image_unref)