mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	added localtime_r for use on windows
This commit is contained in:
		
							parent
							
								
									a8c3c2a391
								
							
						
					
					
						commit
						1114eb9aaf
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -70,9 +70,17 @@ | ||||||
| 
 | 
 | ||||||
| #if EMU_PLATFORM == PLATFORM_WINDOWS | #if EMU_PLATFORM == PLATFORM_WINDOWS | ||||||
| 
 | 
 | ||||||
|  | #include <time.h> | ||||||
|  | 
 | ||||||
| #define NOMINMAX | #define NOMINMAX | ||||||
| #define EMU_FASTCALL __fastcall | #define EMU_FASTCALL __fastcall | ||||||
| 
 | 
 | ||||||
|  | inline struct tm* localtime_r(const time_t *clock, struct tm *result) { | ||||||
|  | 	if (localtime_s(result, clock) == 0) | ||||||
|  | 		return result; | ||||||
|  | 	return NULL; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| #else | #else | ||||||
| 
 | 
 | ||||||
| #define EMU_FASTCALL __attribute__((fastcall)) | #define EMU_FASTCALL __attribute__((fastcall)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue