summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-05-09 16:37:39 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-05-10 17:14:07 +0800
commit092cb9e202a9f654152bc5fbb276521817346d11 (patch)
tree994776b3fb72a339bdb8c3281f3a92d25b46d7d4 /gtk/gtkprogressbar.c
parent7a0941c0908df71ce5f11f76537c288ef0cba26b (diff)
downloadgtk+-092cb9e202a9f654152bc5fbb276521817346d11.tar.gz
GTK: Fix build for pre-C99 compilers
Some compilers we support, such as pre-2013 Visual Studio, does not support for INIFINITY, log2() and exp2(), so check for exp2() and log2() during configure, and use fallbacks for them and INIFINTY if they are not found. https://bugzilla.gnome.org/show_bug.cgi?id=766207
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r--gtk/gtkprogressbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 9ba2c86d1f..86c57a5318 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -25,7 +25,6 @@
#include "config.h"
#include <string.h>
-#include <math.h>
#include "gtkprogressbar.h"
#include "gtkorientableprivate.h"
@@ -42,6 +41,8 @@
#include "a11y/gtkprogressbaraccessible.h"
+#include "fallback-c89.c"
+
/**
* SECTION:gtkprogressbar
* @Short_description: A widget which indicates progress visually