mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	include: Use GCC-style attributes and builtins on Clang MSVC target.
This commit is contained in:
		
				
					committed by
					
						 Alexandre Julliard
						Alexandre Julliard
					
				
			
			
				
	
			
			
			
						parent
						
							078cf6a240
						
					
				
				
					commit
					616bf93931
				
			
				
				Notes:
				
					Alexandre Julliard
				
				2023-11-20 22:33:38 +01:00 
			
			Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/484
| @@ -75,7 +75,7 @@ static inline size_t align(size_t addr, size_t alignment) | ||||
|     return (addr + (alignment - 1)) & ~(alignment - 1); | ||||
| } | ||||
|  | ||||
| #ifdef __GNUC__ | ||||
| #if defined(__GNUC__) || defined(__clang__) | ||||
| # define VKD3D_NORETURN __attribute__((noreturn)) | ||||
| # ifdef __MINGW_PRINTF_FORMAT | ||||
| #  define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(__MINGW_PRINTF_FORMAT, fmt, args))) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user