summaryrefslogtreecommitdiff
path: root/mini-gmp
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2020-11-19 13:22:55 +0100
committerTorbjorn Granlund <tg@gmplib.org>2020-11-19 13:22:55 +0100
commit9bdc20beecfd8bfdb01801224a4d2a7e360916fe (patch)
tree8e9747ce3a7d927af689e9c6917966a33ab96056 /mini-gmp
parent2efb5cc826c93c1bbd59a502145b96600a198d88 (diff)
downloadgmp-9bdc20beecfd8bfdb01801224a4d2a7e360916fe.tar.gz
Provide default M_PI definition.
Diffstat (limited to 'mini-gmp')
-rw-r--r--mini-gmp/tests/t-double.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mini-gmp/tests/t-double.c b/mini-gmp/tests/t-double.c
index fa40e3193..48774b383 100644
--- a/mini-gmp/tests/t-double.c
+++ b/mini-gmp/tests/t-double.c
@@ -118,6 +118,10 @@ test_matissa (void)
mpz_clear (y);
}
+#ifndef M_PI
+#define M_PI 3.141592653589793238462643383279502884
+#endif
+
static const struct
{
double d;