Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fc8b87

Browse files
committed
Port 5b607cd8c71b (closes #11892)
1 parent c3ab577 commit 2fc8b87

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

Include/pyport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ typedef Py_intptr_t Py_ssize_t;
279279

280280
#include <stdlib.h>
281281

282+
#ifdef HAVE_IEEEFP_H
283+
#include <ieeefp.h> /* needed for 'finite' declaration on some platforms */
284+
#endif
285+
282286
#include <math.h> /* Moved here from the math section, before extern "C" */
283287

284288
/********************************************

Objects/complexobject.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
#include "Python.h"
99
#include "structmember.h"
1010

11-
#ifdef HAVE_IEEEFP_H
12-
#include <ieeefp.h>
13-
#endif
14-
1511
#ifndef WITHOUT_COMPLEX
1612

1713
/* elementary operations on complex numbers */

Objects/floatobject.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
#define MAX(x, y) ((x) < (y) ? (y) : (x))
1616
#define MIN(x, y) ((x) < (y) ? (x) : (y))
1717

18-
#ifdef HAVE_IEEEFP_H
19-
#include <ieeefp.h>
20-
#endif
21-
2218

2319
#ifdef _OSF_SOURCE
2420
/* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */

0 commit comments

Comments
 (0)