summaryrefslogtreecommitdiff
path: root/Lib/swigfragments.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/swigfragments.swg')
-rw-r--r--Lib/swigfragments.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/swigfragments.swg b/Lib/swigfragments.swg
index 63bb6c8f4..2cbef7cce 100644
--- a/Lib/swigfragments.swg
+++ b/Lib/swigfragments.swg
@@ -35,7 +35,7 @@
%fragment("<stdio.h>", "header") %{
#include <stdio.h>
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
+#if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
# ifndef snprintf
# define snprintf _snprintf
# endif