diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-10-18 22:17:25 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-10-18 22:17:25 +0200 |
commit | 8eb4a3fb3a024db0543ad0592cb3434d06bf078f (patch) | |
tree | f9719b91f5ea697793c77d3191d53b87b4a0661b /demos | |
parent | 08d34a9402627c9ab6e89ffc18737892401b7764 (diff) | |
download | gmp-8eb4a3fb3a024db0543ad0592cb3434d06bf078f.tar.gz |
* demos/qcn.c (M_PI): Define if not already provided, helps mingw32.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/qcn.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/demos/qcn.c b/demos/qcn.c index 77d734538..3133e783d 100644 --- a/demos/qcn.c +++ b/demos/qcn.c @@ -1,9 +1,8 @@ /* Use mpz_kronecker_ui() to calculate an estimate for the quadratic class number h(d), for a given negative fundamental discriminant, using - Dirichlet's analytic formula. */ + Dirichlet's analytic formula. -/* -Copyright 1999, 2000 Free Software Foundation, Inc. +Copyright 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -44,6 +43,10 @@ Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "gmp.h" +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + /* A simple but slow primality test. */ int |