Skip to content

Commit 7a26464

Browse files
louisomserhiy-storchaka
authored andcommitted
bpo-29946: Fix "sqrtpi defined but not used" (python#908)
1 parent 5466d4a commit 7a26464

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Modules/mathmodule.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ module math
7171
*/
7272

7373
static const double pi = 3.141592653589793238462643383279502884197;
74-
static const double sqrtpi = 1.772453850905516027298167483341145182798;
7574
static const double logpi = 1.144729885849400174143427351353058711647;
75+
#if !defined(HAVE_ERF) || !defined(HAVE_ERFC)
76+
static const double sqrtpi = 1.772453850905516027298167483341145182798;
77+
#endif /* !defined(HAVE_ERF) || !defined(HAVE_ERFC) */
7678

7779
static double
7880
sinpi(double x)

0 commit comments

Comments
 (0)