commit | 2be00d987d37682a55db67c298e82c405d01b868 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Wed Oct 31 20:19:24 2018 +0100 |
committer | GitHub <noreply@github.com> | Wed Oct 31 20:19:24 2018 +0100 |
tree | effedc3003c8a19764ba20f44a63501e66e58327 | |
parent | b08746bfdf64e55ce33516f2065fa2aa4f51be95 [diff] [blame] |
bpo-35081: Move Py_BUILD_CORE code to internal/mem.h (GH-10249) * Add #include "internal/mem.h" to C files using _PyMem_SetDefaultAllocator(). * Include/internal/mem.h now requires Py_BUILD_CORE to be defined.
diff --git a/Modules/main.c b/Modules/main.c index 455178a..6a8aa05 100644 --- a/Modules/main.c +++ b/Modules/main.c
@@ -2,6 +2,7 @@ #include "Python.h" #include "osdefs.h" +#include "internal/mem.h" #include "internal/pygetopt.h" #include "internal/pystate.h"