summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5e2c232)
This is essentially done by simply copying from gtk/fallback-c89.c
https://bugzilla.gnome.org/show_bug.cgi?id=694339
return (!_finite (x) && !_isnan (x));
}
#endif
return (!_finite (x) && !_isnan (x));
}
#endif
+
+/* Workaround for round() for non-GCC/non-C99 compilers */
+#ifndef HAVE_ROUND
+static inline double
+round (double x)
+{
+ if (x >= 0)
+ return floor (x + 0.5);
+ else
+ return ceil (x - 0.5);
+}
+#endif