]> Pileus Git - ~andy/gtk/commitdiff
gdk/gdkwindow.c, gtk/gtkwidget.c: Include fallback-c89.c
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 21 Feb 2013 07:54:18 +0000 (15:54 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 13 Mar 2013 05:22:48 +0000 (13:22 +0800)
Both of them started to make use of round(), a C99 function.  So, include
fallback-c89.c to provide a fallback implementation for round() for
compilers that don't have round()

https://bugzilla.gnome.org/show_bug.cgi?id=694339

gdk/gdkwindow.c
gtk/gtkwidget.c

index 8191e0c14e6f0571d44fb9db5141291b643b7339..6d48080294cb93cd9f915d058485eaf67147a283 100644 (file)
@@ -42,6 +42,9 @@
 
 #include <math.h>
 
+/* for the use of round() */
+#include "fallback-c89.c"
+
 #undef DEBUG_WINDOW_PRINTING
 
 
index 37460e3419680aab8b42d52e0f51003bb474fc0a..5716a04ae04f83a0c0a81b55371357c342e2db7a 100644 (file)
@@ -66,6 +66,9 @@
 #include "gtktypebuiltins.h"
 #include "a11y/gtkwidgetaccessible.h"
 
+/* for the use of round() */
+#include "fallback-c89.c"
+
 /**
  * SECTION:gtkwidget
  * @Short_description: Base class for all widgets