summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2018-01-08 11:17:01 +0100
committerArmin Rigo <arigo@tunes.org>2018-01-08 11:17:01 +0100
commitc2587d6dd77d35b01cfef2580ff432c773ecc876 (patch)
tree9e2663082814a41f538caa641c57804724c01250 /cffi
parent5783ccab8f1d2e5cddd31c2e4d79b02c19d80303 (diff)
downloadcffi-c2587d6dd77d35b01cfef2580ff432c773ecc876.tar.gz
Only do that dance if _MSC_VER is defined
Diffstat (limited to 'cffi')
-rw-r--r--cffi/_cffi_include.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h
index d460cef..f2bb0ca 100644
--- 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