mirror of
				https://github.com/notepad-plus-plus/notepad-plus-plus.git
				synced 2025-11-02 20:43:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			531 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			531 B
		
	
	
	
		
			C
		
	
	
	
	
	
// this file contains fixes needed for Notepad++ to be built by GCC
 | 
						|
// the makefile automatically includes this file
 | 
						|
 | 
						|
static constexpr unsigned int max(unsigned int a, unsigned int b) {
 | 
						|
	return a > b ? a : b;
 | 
						|
}
 | 
						|
 | 
						|
static constexpr unsigned int min(unsigned int a, unsigned int b) {
 | 
						|
	return a < b ? a : b;
 | 
						|
}
 | 
						|
 | 
						|
// __try and __except are unknown to GCC, so convert them to something eligible
 | 
						|
#define __try try
 | 
						|
#define __except(x) catch(...)
 | 
						|
 | 
						|
#ifndef PROCESSOR_ARCHITECTURE_ARM64
 | 
						|
	#define PROCESSOR_ARCHITECTURE_ARM64            12
 | 
						|
#endif |