mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	LibC: Stub out fwide()
This is a mess, and I'd rather not perform checks on every single stdio operation, so just make it a noop.
This commit is contained in:
		
							parent
							
								
									cb90856756
								
							
						
					
					
						commit
						bd9a22e7e7
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -77,5 +77,6 @@ wint_t getwchar(void); | |||
| wint_t fputwc(wchar_t wc, FILE* stream); | ||||
| wint_t putwc(wchar_t wc, FILE* stream); | ||||
| wint_t putwchar(wchar_t wc); | ||||
| int fwide(FILE* stream, int mode); | ||||
| 
 | ||||
| __END_DECLS | ||||
|  |  | |||
|  | @ -17,6 +17,12 @@ static_assert(AssertSize<wchar_t, sizeof(u32)>()); | |||
| 
 | ||||
| extern "C" { | ||||
| 
 | ||||
| int fwide(FILE*, int mode) | ||||
| { | ||||
|     // Nope Nope Nope.
 | ||||
|     return mode; | ||||
| } | ||||
| 
 | ||||
| wint_t fgetwc(FILE* stream) | ||||
| { | ||||
|     VERIFY(stream); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ali Mohammad Pur
						Ali Mohammad Pur