[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- superseder: -> Move PyArena C API to the internal C API ___ Python tracker ___ ___ Python-bugs-list m

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Dup of bpo-43244. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: Fixing this super annoying Yield warning was one of my motivation for moving Python-ast.h to the internal C API (pycore_ast.h) :-D I disliked that Python-ast.h defined tons of symbols without "Py" (or "_Py") prefix: commit 94faa0724f8cbae6867c491c8e465e35f4f

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: This issue should be fixed: commit d36d6a9c1808e87628ebaa855d4bec80130189f4 Author: Victor Stinner Date: Wed Apr 7 13:01:09 2021 +0200 bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243) * pycore_ast.h no longer defines the Yield macro.

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread Guido van Rossum
New submission from Guido van Rossum : When building from scratch on Windows I get this warning: c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winbase.h(103): warning C4005: 'Yield': macro redefinition [C:\Users\gvanrossum\cpython\PCbuild\pythoncore.vcxproj] I know there is