From 0621e0ea86ab964110c612b5eca297a698fb5195 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 19 Apr 2016 17:02:55 +0200 Subject: Don't define _PyMem_PymallocEnabled() if pymalloc is disabled Isse #26516. --- Objects/obmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/obmalloc.c') diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 40c9fcdec9..6cf8ea9018 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) { -- cgit v1.2.1