add check for C++17 constexpr if

This commit is contained in:
Jinhao 2017-12-18 22:10:01 +08:00
parent 81018c21fd
commit 1e551f4e55

View File

@ -199,6 +199,11 @@
# define _enable_std_clamp # define _enable_std_clamp
#endif #endif
#undef _nana_cxx_constexpr_if
#if (defined(_MSC_VER) && (_MSC_VER >= 1912) && defined(_MSVC_LANG) && _MSVC_LANG>= 201703)
# define _nana_cxx_constexpr_if
#endif
#if defined(NANA_WINDOWS) #if defined(NANA_WINDOWS)
#ifndef _UNICODE #ifndef _UNICODE