Author: mattip <[email protected]>
Branch: cpyext-ext
Changeset: r82956:dafdc7b5af5e
Date: 2016-03-11 12:05 +0200
http://bitbucket.org/pypy/pypy/changeset/dafdc7b5af5e/
Log: force Python.h to be included first, silences warnings during
compilation
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
@@ -59,8 +59,9 @@
class CConfig:
_compilation_info_ = ExternalCompilationInfo(
include_dirs=include_dirs,
- includes=['Python.h', 'stdarg.h', 'structmember.h'],
+ includes=['stdarg.h', 'structmember.h'],
compile_extra=['-DPy_BUILD_CORE'],
+ pre_include_bits = ['#include "Python.h"'],
)
class CConfig2:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit