avoid introducing <algorithm> for MSVC
This commit is contained in:
		
							parent
							
								
									910f650dae
								
							
						
					
					
						commit
						9ff1ea4605
					
				@ -195,6 +195,7 @@
 | 
			
		||||
#	endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef _MSC_VER
 | 
			
		||||
// std::clamp's feature test macro is defined inside <algorithm> 
 | 
			
		||||
#	include <algorithm>
 | 
			
		||||
#	if (!defined(__cpp_lib_clamp)) || (__cpp_lib_clamp < 201603)
 | 
			
		||||
@ -202,6 +203,7 @@
 | 
			
		||||
#			define _enable_std_clamp
 | 
			
		||||
#		endif
 | 
			
		||||
#	endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#if defined(NANA_WINDOWS)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user