summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-09-14 17:49:54 (GMT)
committerGuido van Rossum <guido@python.org>2005-09-14 17:49:54 (GMT)
commit539c662f10b41d15f658cabfa03cc02902862adc (patch)
tree4df533b4d47a5481832638a22a7225499ca67591 /Include/pyport.h
parent3fbf3204c5526589eeedf6413a3875a0fdd2f25d (diff)
downloadcpython-539c662f10b41d15f658cabfa03cc02902862adc.zip
cpython-539c662f10b41d15f658cabfa03cc02902862adc.tar.gz
cpython-539c662f10b41d15f658cabfa03cc02902862adc.tar.bz2
- Changes donated by Elemental Security to make it work on HP-UX 11 on
Itanium2 with HP's 64-bit compiler (SF patch #1225212).
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index f71b9f4..2440c55 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -297,7 +297,7 @@ extern "C" {
* This isn't reliable. See Py_OVERFLOWED comments.
* X is evaluated more than once.
*/
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || (defined(__hpux) && defined(__ia64))
#define _Py_SET_EDOM_FOR_NAN(X) if (isnan(X)) errno = EDOM;
#else
#define _Py_SET_EDOM_FOR_NAN(X) ;