summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-18 13:58:18 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-04-18 13:58:18 (GMT)
commitf253786a807967c2a7f289fa294b66d5dffadcdd (patch)
treeb5583470a84088050578da953c1ff16946b9ad5e /Include
parentf498113f3f8585f5e7c5f4cedca0108c41628c75 (diff)
downloadcpython-f253786a807967c2a7f289fa294b66d5dffadcdd.zip
cpython-f253786a807967c2a7f289fa294b66d5dffadcdd.tar.gz
cpython-f253786a807967c2a7f289fa294b66d5dffadcdd.tar.bz2
Add check for C99 round function to configure, and define
a fallback function if round doesn't exist.
Diffstat (limited to 'Include')
-rw-r--r--Include/pymath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pymath.h b/Include/pymath.h
index 8872e8a..816691a 100644
--- a/Include/pymath.h
+++ b/Include/pymath.h
@@ -22,6 +22,10 @@ functions and constants
extern double copysign(double, double);
#endif
+#ifndef HAVE_ROUND
+extern double round(double);
+#endif
+
#ifndef HAVE_ACOSH
extern double acosh(double);
#endif