diff options
author | Max Bachmann <kontakt@maxbachmann.de> | 2021-10-28 09:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 09:11:52 +0200 |
commit | db19667d81066aa20cf13ab3ea9cba8d5ab9c948 (patch) | |
tree | ba470a670c47c01d5a4c82177a7fac60d4e1cc1c | |
parent | 1461e514c00056eef58c7c18262012b1510ba692 (diff) | |
download | cython-db19667d81066aa20cf13ab3ea9cba8d5ab9c948.tar.gz |
Apply #3782 to all releases older than Visual Studio 2017 (GH-4357)
See https://github.com/cython/cython/pull/3782
-rw-r--r-- | Cython/Utility/CppSupport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Utility/CppSupport.cpp b/Cython/Utility/CppSupport.cpp index 4e883539f..ca5579918 100644 --- a/Cython/Utility/CppSupport.cpp +++ b/Cython/Utility/CppSupport.cpp @@ -72,10 +72,10 @@ auto __Pyx_pythran_to_python(T &&value) -> decltype(to_python( ////////////// EnumClassDecl.proto ////////////////// #if defined (_MSC_VER) - #if PY_VERSION_HEX >= 0x03040000 && PY_VERSION_HEX < 0x03050000 - #define __PYX_ENUM_CLASS_DECL - #else + #if _MSC_VER >= 1910 #define __PYX_ENUM_CLASS_DECL enum + #else + #define __PYX_ENUM_CLASS_DECL #endif #else #define __PYX_ENUM_CLASS_DECL enum |