avoid introducing <algorithm> for MSVC

This commit is contained in:
Jinhao 2017-07-02 13:01:53 +08:00
parent 910f650dae
commit 9ff1ea4605

View File

@ -195,6 +195,7 @@
# endif # endif
#endif #endif
#ifndef _MSC_VER
// std::clamp's feature test macro is defined inside <algorithm> // std::clamp's feature test macro is defined inside <algorithm>
# include <algorithm> # include <algorithm>
# if (!defined(__cpp_lib_clamp)) || (__cpp_lib_clamp < 201603) # if (!defined(__cpp_lib_clamp)) || (__cpp_lib_clamp < 201603)
@ -202,6 +203,7 @@
# define _enable_std_clamp # define _enable_std_clamp
# endif # endif
# endif # endif
#endif
#if defined(NANA_WINDOWS) #if defined(NANA_WINDOWS)