Fixed stdc++.hpp build error on gcc 7
included algorithm in c++defines.hpp this fixes std::clamp's feature test which was not working.
This commit is contained in:
parent
1ed7702790
commit
4d2921e31b
@ -195,6 +195,8 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// std::clamp's feature test macro is defined inside <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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user