[pypy-commit] cffi default: (dstufft) Don't overwrite a user-specified value for Py_LIMITED_API, if

arigo pypy.commits at gmail.com
Tue Apr 11 11:29:49 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2925:3948391a4ce9
Date: 2017-04-11 17:29 +0200
http://bitbucket.org/cffi/cffi/changeset/3948391a4ce9/

Log:	(dstufft) Don't overwrite a user-specified value for Py_LIMITED_API,
	if any

diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h
--- a/cffi/_cffi_include.h
+++ b/cffi/_cffi_include.h
@@ -8,7 +8,7 @@
    the same works for the other two macros.  Py_DEBUG implies them,
    but not the other way around.
 */
-#ifndef _CFFI_USE_EMBEDDING
+#if !defined(_CFFI_USE_EMBEDDING) && !defined(Py_LIMITED_API)
 #  include <pyconfig.h>
 #  if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_REF_DEBUG)
 #    define Py_LIMITED_API


More information about the pypy-commit mailing list