Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r3055:14ce6985e1c3
Date: 2018-01-08 11:17 +0100
http://bitbucket.org/cffi/cffi/changeset/14ce6985e1c3/

Log:    Only do that dance if _MSC_VER is defined

diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h
--- a/cffi/_cffi_include.h
+++ b/cffi/_cffi_include.h
@@ -8,13 +8,13 @@
    the same works for the other two macros.  Py_DEBUG implies them,
    but not the other way around.
 
-   Issue #350: more mess: on Windows, we have to define Py_LIMITED_API
-   even before including pyconfig.h.  In that case, we guess what
-   pyconfig.h will do to the macros above, and check our guess after
-   the #include.
+   Issue #350: more mess: on Windows, with _MSC_VER, we have to define
+   Py_LIMITED_API even before including pyconfig.h.  In that case, we
+   guess what pyconfig.h will do to the macros above, and check our
+   guess after the #include.
 */
 #if !defined(_CFFI_USE_EMBEDDING) && !defined(Py_LIMITED_API)
-#  ifdef _WIN32
+#  ifdef _MSC_VER
 #    if !defined(_DEBUG) && !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && 
!defined(Py_REF_DEBUG)
 #      define Py_LIMITED_API
 #    endif
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to