avoid introducing <algorithm> for MSVC
This commit is contained in:
parent
910f650dae
commit
9ff1ea4605
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user