summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-07 13:01:09 +0200
committerGitHub <noreply@github.com>2021-04-07 13:01:09 +0200
commitd36d6a9c1808e87628ebaa855d4bec80130189f4 (patch)
tree2b4633ff2e80878f75abad58d8a768a14160b1fc /Python/import.c
parent67969f5eb80844b68005181fd887bcf94c01fb40 (diff)
downloadcpython-git-d36d6a9c1808e87628ebaa855d4bec80130189f4.tar.gz
bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243)
* pycore_ast.h no longer defines the Yield macro. * Fix a compiler warning on Windows: "warning C4005: 'Yield': macro redefinition". * Python-ast.c now defines directly functions with their real _Py_xxx() name, rather than xxx(). * Remove "#undef Yield" in C files including pycore_ast.h.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 6fba057bad..c4878c628b 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2,7 +2,6 @@
#include "Python.h"
-#undef Yield /* undefine macro conflicting with <winbase.h> */
#include "pycore_import.h" // _PyImport_BootstrapImp()
#include "pycore_initconfig.h"
#include "pycore_pyerrors.h"