From: Victor Stinner Date: Tue, 19 Apr 2016 15:02:55 +0000 (+0200) Subject: Don't define _PyMem_PymallocEnabled() if pymalloc is disabled X-Git-Tag: v3.6.0a1~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0621e0ea86ab964110c612b5eca297a698fb5195;p=thirdparty%2FPython%2Fcpython.git Don't define _PyMem_PymallocEnabled() if pymalloc is disabled Isse #26516. --- diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 40c9fcdec936..6cf8ea90184c 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -286,13 +286,13 @@ static PyObjectArenaAllocator _PyObject_Arena = {NULL, #endif }; +#ifdef WITH_PYMALLOC static int _PyMem_DebugEnabled(void) { return (_PyObject.malloc == _PyMem_DebugMalloc); } -#ifdef WITH_PYMALLOC int _PyMem_PymallocEnabled(void) {