mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Issue #6183: Disables wcsftime on VC6.
This commit is contained in:
		
							parent
							
								
									3db5e7be1c
								
							
						
					
					
						commit
						6b0e51a08c
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -540,7 +540,7 @@ time_strftime(PyObject *self, PyObject *args) | ||||||
| 	fmt = PyBytes_AS_STRING(format); | 	fmt = PyBytes_AS_STRING(format); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifdef MS_WINDOWS | #if defined(MS_WINDOWS) && defined(HAVE_WCSFTIME) | ||||||
| 	/* check that the format string contains only valid directives */ | 	/* check that the format string contains only valid directives */ | ||||||
| 	for(outbuf = wcschr(fmt, L'%'); | 	for(outbuf = wcschr(fmt, L'%'); | ||||||
| 		outbuf != NULL; | 		outbuf != NULL; | ||||||
|  |  | ||||||
|  | @ -638,7 +638,9 @@ Py_NO_ENABLE_SHARED to find out.  Also support MS_NO_COREDLL for b/w compat */ | ||||||
| /* #undef HAVE_WAITPID */ | /* #undef HAVE_WAITPID */ | ||||||
| 
 | 
 | ||||||
| /* Define to 1 if you have the `wcsftime' function. */ | /* Define to 1 if you have the `wcsftime' function. */ | ||||||
|  | #if defined(_MSC_VER) && _MSC_VER >= 1310 | ||||||
| #define HAVE_WCSFTIME 1 | #define HAVE_WCSFTIME 1 | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| /* Define to 1 if you have the `wcscoll' function. */ | /* Define to 1 if you have the `wcscoll' function. */ | ||||||
| #ifndef MS_WINCE | #ifndef MS_WINCE | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hirokazu Yamamoto
						Hirokazu Yamamoto