[Patches] [ python-Patches-466353 ] Py_HUGE_VAL on BeOS for Intel
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 29 Sep 2001 04:51:00 -0700
Patches item #466353, was opened at 2001-09-29 04:50
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=466353&group_id=5470
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Py_HUGE_VAL on BeOS for Intel
Initial Comment:
*** Python-2.2a4/Include/pyport.h~ Thu Sep 6 07:36:55 2001
--- Python-2.2a4/Include/pyport.h Sat Sep 29 19:50:51 2001
***************
*** 236,246 ****
--- 236,251 ----
* defined to be the largest positive finite rather than
infinity. We need
* the std-conforming infinity meaning (provided the
platform has one!).
*/
+ #if defined(__BEOS__) && defined(__INTEL__)
+ /* On BeOS for Intel, INFINITY is defined as float. */
+ #define Py_HUGE_VAL HUGE_VAL
+ #else
#ifdef INFINITY
#define Py_HUGE_VAL INFINITY
#else
#define Py_HUGE_VAL HUGE_VAL
#endif
+ #endif /* defined(__BEOS__) && defined(__INTEL__) */
/* Py_OVERFLOWED(X)
* Return 1 iff a libm function overflowed. Set errno to
0 before calling
On BeOS for Intel, INFINITY is defined as float, and
HUGE_VAL is defined as double. This patch is mandatory;
with the original pyport.h, "gcc -O" emits internal errors
in compilation of Objects/floatobject.c and
Objects/longobject.c.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=466353&group_id=5470