summaryrefslogtreecommitdiff
path: root/Modules/operator.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-08 19:12:05 +0000
committerGuido van Rossum <guido@python.org>1996-08-08 19:12:05 +0000
commit6d2e9479852156113ab60d3a6825a402dfb73f22 (patch)
treecb8157a5afe5a510b61e90feed1588a2578e5468 /Modules/operator.c
parenta5119258d06adf3728b0e583dba768eb3d981f20 (diff)
downloadcpython-6d2e9479852156113ab60d3a6825a402dfb73f22.tar.gz
Added hack to get it to compile on AIX.
Diffstat (limited to 'Modules/operator.c')
-rw-r--r--Modules/operator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/operator.c b/Modules/operator.c
index 6e0db3d4e9..3a34241155 100644
--- a/Modules/operator.c
+++ b/Modules/operator.c
@@ -110,6 +110,11 @@ used for special class methods; variants without leading and trailing\n\
if(-1 == (r=AOP(a1,a2))) return NULL; \
return PyInt_FromLong(r); }
+#ifdef _AIX
+#define __div __aix_div
+#define __abs __aix_abs
+#endif
+
spami(isCallable , PyCallable_Check)
spami(isNumberType , PyNumber_Check)
spami(truth , PyObject_IsTrue)