commit | 0621e0ea86ab964110c612b5eca297a698fb5195 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Apr 19 17:02:55 2016 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Apr 19 17:02:55 2016 +0200 |
tree | 54e4167414bc0df6fb4955d7b8f9df774bf27e8c | |
parent | 1fa5a38e92e8a50e565f4fee7a5b31131b1d56f3 [diff] [blame] |
Don't define _PyMem_PymallocEnabled() if pymalloc is disabled Isse #26516.
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 40c9fcd..6cf8ea9 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c
@@ -286,13 +286,13 @@ #endif }; +#ifdef WITH_PYMALLOC static int _PyMem_DebugEnabled(void) { return (_PyObject.malloc == _PyMem_DebugMalloc); } -#ifdef WITH_PYMALLOC int _PyMem_PymallocEnabled(void) {