diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2019-04-19 11:33:02 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2019-04-19 11:33:02 +0100 |
commit | 545ab8af08868cd3136f9a5e91ff69dfcf5e3184 (patch) | |
tree | d77e47428ec5bb2bf39384805a49d402c1a4b867 /Lib/swigfragments.swg | |
parent | f87182ad98de90f46d986617c1c942be8bdc9002 (diff) | |
download | swig-545ab8af08868cd3136f9a5e91ff69dfcf5e3184.tar.gz |
Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition.
Closes #1508
Diffstat (limited to 'Lib/swigfragments.swg')
-rw-r--r-- | Lib/swigfragments.swg | 2 |
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 |