avoid introducing <algorithm> for MSVC
This commit is contained in:
parent
910f650dae
commit
9ff1ea4605
@ -195,12 +195,14 @@
|
|||||||
# 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)
|
||||||
# ifndef _enable_std_clamp
|
# ifndef _enable_std_clamp
|
||||||
# define _enable_std_clamp
|
# define _enable_std_clamp
|
||||||
# endif
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user