mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-24643: Fix "#define timezone _timezone" clashes on Windows (GH-12019)
This commit is contained in:
parent
aadef2b416
commit
6673decfa0
3 changed files with 16 additions and 12 deletions
|
|
@ -192,13 +192,6 @@ typedef int pid_t;
|
|||
#define Py_IS_FINITE(X) _finite(X)
|
||||
#define copysign _copysign
|
||||
|
||||
/* VS 2015 defines these names with a leading underscore */
|
||||
#if _MSC_VER >= 1900
|
||||
#define timezone _timezone
|
||||
#define daylight _daylight
|
||||
#define tzname _tzname
|
||||
#endif
|
||||
|
||||
/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
|
||||
#if _MSC_VER >= 1400 && _MSC_VER < 1600
|
||||
#define HAVE_SXS 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue