summaryrefslogtreecommitdiff
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 9cdc4c5a95..bd8844f5b4 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -213,6 +213,13 @@ typedef int pid_t;
#define hypot _hypot
#endif
+/* 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