Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition.
Closes #1508
This commit is contained in:
parent
f87182ad98
commit
545ab8af08
3 changed files with 6 additions and 2 deletions
|
|
@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
||||||
Version 4.0.0 (in progress)
|
Version 4.0.0 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2019-04-19: pbecherer
|
||||||
|
[Tcl] Fix Visual Studio 2015 and later compilation errors due to snprintf macro
|
||||||
|
definition.
|
||||||
|
|
||||||
2019-04-09: wsfulton
|
2019-04-09: wsfulton
|
||||||
[C#] Fix FxCop warning CA2002 in SWIGPendingException - a lock on a reference of
|
[C#] Fix FxCop warning CA2002 in SWIGPendingException - a lock on a reference of
|
||||||
type 'Type'.
|
type 'Type'.
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
|
#if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
|
||||||
# ifndef snprintf
|
# ifndef snprintf
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
%fragment("<stdio.h>", "header") %{
|
%fragment("<stdio.h>", "header") %{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
|
#if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
|
||||||
# ifndef snprintf
|
# ifndef snprintf
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue