]> granicus.if.org Git - python/commitdiff
Added hack to get it to compile on AIX.
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 1996 19:12:05 +0000 (19:12 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 1996 19:12:05 +0000 (19:12 +0000)
Modules/operator.c

index 6e0db3d4e9845ace7c512f640f748caaa14cd133..3a34241155a47ab6b1e345e689693aff75b11f0b 100644 (file)
@@ -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)