From 48e47aaa28d6dfdae128142ffcbc4b0642422e90 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 13 May 2015 00:19:51 +0300 Subject: Issue #22486: Added the math.gcd() function. The fractions.gcd() function now is deprecated. Based on patch by Mark Dickinson. --- Include/longobject.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/longobject.h') diff --git a/Include/longobject.h b/Include/longobject.h index ff43309c76..aed59ce01d 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -198,6 +198,9 @@ PyAPI_FUNC(int) _PyLong_FormatAdvancedWriter( PyAPI_FUNC(unsigned long) PyOS_strtoul(const char *, char **, int); PyAPI_FUNC(long) PyOS_strtol(const char *, char **, int); +/* For use by the gcd function in mathmodule.c */ +PyAPI_FUNC(PyObject *) _PyLong_GCD(PyObject *, PyObject *); + #ifdef __cplusplus } #endif -- cgit v1.2.1