mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	Remove GCC version checks
Citra can't be compiled using GCC <7 because of required C++17 support, so these version checks don't need to exist anymore.
This commit is contained in:
		
							parent
							
								
									f409342ab5
								
							
						
					
					
						commit
						433ab35e7e
					
				
					 4 changed files with 3 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -17,21 +17,12 @@ class Process;
 | 
			
		|||
 | 
			
		||||
namespace Service::LDR {
 | 
			
		||||
 | 
			
		||||
// GCC versions < 5.0 do not implement std::is_trivially_copyable.
 | 
			
		||||
// Excluding MSVC because it has weird behaviour for std::is_trivially_copyable.
 | 
			
		||||
#if (__GNUC__ >= 5) || defined(__clang__)
 | 
			
		||||
#define ASSERT_CRO_STRUCT(name, size)                                                              \
 | 
			
		||||
    static_assert(std::is_standard_layout<name>::value,                                            \
 | 
			
		||||
                  "CRO structure " #name " doesn't use standard layout");                          \
 | 
			
		||||
    static_assert(std::is_trivially_copyable<name>::value,                                         \
 | 
			
		||||
                  "CRO structure " #name " isn't trivially copyable");                             \
 | 
			
		||||
    static_assert(sizeof(name) == (size), "Unexpected struct size for CRO structure " #name)
 | 
			
		||||
#else
 | 
			
		||||
#define ASSERT_CRO_STRUCT(name, size)                                                              \
 | 
			
		||||
    static_assert(std::is_standard_layout<name>::value,                                            \
 | 
			
		||||
                  "CRO structure " #name " doesn't use standard layout");                          \
 | 
			
		||||
    static_assert(sizeof(name) == (size), "Unexpected struct size for CRO structure " #name)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static constexpr u32 CRO_HEADER_SIZE = 0x138;
 | 
			
		||||
static constexpr u32 CRO_HASH_SIZE = 0x80;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue