Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions patches/2.7/0001-fix-pyerror-msvc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -311,7 +311,7 @@
not rely on any particular behavior; eventually the C99 defn may
be reliable.
*/
-#if defined(MS_WIN32) && !defined(HAVE_SNPRINTF)
+#if defined(MS_WIN32) && _MSC_VER < 1500 && !defined(HAVE_SNPRINTF)
# define HAVE_SNPRINTF
# define snprintf _snprintf
# define vsnprintf _vsnprintf
11 changes: 11 additions & 0 deletions patches/3.5/0001-fix-pyerror-msvc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -311,7 +311,7 @@
not rely on any particular behavior; eventually the C99 defn may
be reliable.
*/
-#if defined(MS_WIN32) && !defined(HAVE_SNPRINTF)
+#if defined(MS_WIN32) && _MSC_VER < 1500 && !defined(HAVE_SNPRINTF)
# define HAVE_SNPRINTF
# define snprintf _snprintf
# define vsnprintf _vsnprintf
11 changes: 11 additions & 0 deletions patches/3.6/0001-fix-pyerror-msvc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -311,7 +311,7 @@
not rely on any particular behavior; eventually the C99 defn may
be reliable.
*/
-#if defined(MS_WIN32) && !defined(HAVE_SNPRINTF)
+#if defined(MS_WIN32) && _MSC_VER < 1500 && !defined(HAVE_SNPRINTF)
# define HAVE_SNPRINTF
# define snprintf _snprintf
# define vsnprintf _vsnprintf