Skip to content

Commit

Permalink
Try detecting _MSC_VER for __PYX_STD_MOVE_IF_SUPPORTED
Browse files Browse the repository at this point in the history
  • Loading branch information
da-woods committed Aug 27, 2020
1 parent fcfd16c commit 29e4926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cython/Utility/CppSupport.cpp
Expand Up @@ -61,7 +61,8 @@ auto __Pyx_pythran_to_python(T &&value) -> decltype(to_python(

////////////// MoveIfSupported.proto //////////////////

#if __cplusplus >= 201103L
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER > 1900)
// move should be defined for these versions of MSVC, but __cplusplus isn't set usefully
#include <utility>
#define __PYX_STD_MOVE_IF_SUPPORTED(x) std::move(x)
#else
Expand Down

0 comments on commit 29e4926

Please sign in to comment.