mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-24 22:12:16 +02:00 
			
		
		
		
	wint_t is short on Windows, and gcc warns: "wint_t is promoted to int when
2008-05-29 Tor Lillqvist <tml@novell.com> * glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on Windows, and gcc warns: "wint_t is promoted to int when passed through ... (so you should pass int not wint_t to va_arg)." So do that then. svn path=/trunk/; revision=6956
This commit is contained in:
		
				
					committed by
					
						 Tor Lillqvist
						Tor Lillqvist
					
				
			
			
				
	
			
			
			
						parent
						
							82bc28361e
						
					
				
				
					commit
					fbecd2e8ae
				
			| @@ -1,3 +1,10 @@ | ||||
| 2008-05-29  Tor Lillqvist  <tml@novell.com> | ||||
|  | ||||
| 	* glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on | ||||
| 	Windows, and gcc warns: "wint_t is promoted to int when passed | ||||
| 	through ... (so you should pass int not wint_t to va_arg)." So do | ||||
| 	that then. | ||||
|  | ||||
| 2008-05-28  Michael Natterer  <mitch@imendio.com> | ||||
|  | ||||
| 	* configure.in: add G_DISABLE_SINGLE_INCLUDES to CPPFLAGS | ||||
|   | ||||
| @@ -90,7 +90,11 @@ printf_fetchargs (va_list args, arguments *a) | ||||
| 	break; | ||||
| #ifdef HAVE_WINT_T | ||||
|       case TYPE_WIDE_CHAR: | ||||
| #ifdef _WIN32 | ||||
| 	ap->a.a_wide_char = va_arg (args, int); | ||||
| #else | ||||
| 	ap->a.a_wide_char = va_arg (args, wint_t); | ||||
| #endif | ||||
| 	break; | ||||
| #endif | ||||
|       case TYPE_STRING: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user