diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-03-31 08:07:21 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-03-31 08:07:47 +0200 |
commit | 6d69defb12dd00c6ecef4206ef0f9bc721015a3c (patch) | |
tree | 8d9f28fa41d2a98e8e559029d241f87983f05364 | |
parent | b3f28d48169d6e91131eacb2d83759009499edfc (diff) | |
download | cython-6d69defb12dd00c6ecef4206ef0f9bc721015a3c.tar.gz |
Fix MSVC: Add an explicit warning to modules that use the "array.array" internals and try to compile in PyPy.
Closes https://github.com/cython/cython/issues/3448
-rw-r--r-- | Cython/Includes/cpython/array.pxd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Cython/Includes/cpython/array.pxd b/Cython/Includes/cpython/array.pxd index bcb8b7f1b..8431f7b66 100644 --- a/Cython/Includes/cpython/array.pxd +++ b/Cython/Includes/cpython/array.pxd @@ -50,8 +50,12 @@ cdef extern from *: """ #if CYTHON_COMPILING_IN_PYPY + #ifdef _MSC_VER + #pragma message ("This module uses CPython specific internals of 'array.array', which are not available in PyPy.") + #else #warning This module uses CPython specific internals of 'array.array', which are not available in PyPy. #endif + #endif """ from libc.string cimport memset, memcpy |