Staging
v0.5.1
https://github.com/python/cpython
Revision 92135775ce12fd71f0878c0a8a0652c197fcc60b authored by Miss Islington (bot) on 15 January 2020, 17:07:09 UTC, committed by GitHub on 15 January 2020, 17:07:09 UTC

Python-ast.h contains a macro named Yield that conflicts with the Yield macro
in Windows system headers. While Python-ast.h has an "undef Yield" directive
to prevent this, it means that Python-ast.h must be included before Windows
header files or we run into a re-declaration warning. In commit c96be811fa7d
an include for pycore_pystate.h was added which indirectly includes Windows
header files. In this commit we re-order the includes to fix this warning.
(cherry picked from commit e92d39303feb1d3b4194c6a8275b1fc63b2153b2)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
1 parent 9f220e4
History
Tip revision: 92135775ce12fd71f0878c0a8a0652c197fcc60b authored by Miss Islington (bot) on 15 January 2020, 17:07:09 UTC
Fix compiler warning on Windows (GH-18012)
Tip revision: 9213577
File Mode Size
pgen
Python.asdl -rw-r--r-- 5.3 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.6 KB
asdl_c.py -rw-r--r-- 43.5 KB
grammar1.c -rw-r--r-- 1.0 KB
listnode.c -rw-r--r-- 1.2 KB
myreadline.c -rw-r--r-- 10.6 KB
node.c -rw-r--r-- 5.1 KB
parser.c -rw-r--r-- 12.4 KB
parser.h -rw-r--r-- 1.4 KB
parsetok.c -rw-r--r-- 14.2 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 55.1 KB
tokenizer.h -rw-r--r-- 3.7 KB

back to top