summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/pixops
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2017-02-17 18:36:53 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2017-03-02 00:40:04 +0800
commitad0ca78ae40da45fe699743917d588c21ec89f39 (patch)
tree6c699bd49ae002d7c86d32d3e9fd07682b776019 /gdk-pixbuf/pixops
parentc2f9bf25d3136a4bb3c6298ca68db95d9e28986a (diff)
downloadgdk-pixbuf-ad0ca78ae40da45fe699743917d588c21ec89f39.tar.gz
Builds: Add a fallback-c89.c for pre-C99 compilers
Some supported compilers lack some C99 math functions that are beginning to be used in the code, so this adds a fallback implementation for them, namely round() and lrint(), where the fallbacks are used if they are not found during configure. For Visual Studio builds, config.h.win32.in is updated to reflect the situation on various Visual Studio versions as Visual Studio builds do not use autotools.
Diffstat (limited to 'gdk-pixbuf/pixops')
-rw-r--r--gdk-pixbuf/pixops/pixops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/pixops/pixops.c b/gdk-pixbuf/pixops/pixops.c
index dc1b46152..f91f0e339 100644
--- a/gdk-pixbuf/pixops/pixops.c
+++ b/gdk-pixbuf/pixops/pixops.c
@@ -21,6 +21,7 @@
#include <math.h>
#include <glib.h>
+#include "../fallback-c89.c"
#include "pixops.h"
#include "pixops-internal.h"