[pypy-commit] pypy release-pypy3.5-6.x: move include before declaration
mattip
pypy.commits at gmail.com
Thu Oct 11 17:27:50 EDT 2018
Author: Matti Picus <matti.picus at gmail.com>
Branch: release-pypy3.5-6.x
Changeset: r95204:dfef27e92951
Date: 2018-10-10 12:06 +0300
http://bitbucket.org/pypy/pypy/changeset/dfef27e92951/
Log: move include before declaration
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -1550,7 +1550,6 @@
if sys.platform == 'win32':
get_pythonapi_source = '''
- #include <windows.h>
RPY_EXTERN
HANDLE pypy_get_pythonapi_handle() {
MEMORY_BASIC_INFORMATION mi;
@@ -1564,7 +1563,7 @@
}
'''
separate_module_sources.append(get_pythonapi_source)
- kwds['post_include_bits'] = [
+ kwds['post_include_bits'] = ['#include <windows.h>',
'RPY_EXTERN HANDLE pypy_get_pythonapi_handle();',
]
More information about the pypy-commit
mailing list