more on MSC and snprintf/strtoll/strtoull
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c249ad9291
commit
7385a26ccd
1 changed files with 7 additions and 0 deletions
|
|
@ -342,10 +342,17 @@
|
||||||
|
|
||||||
%fragment("<stdio.h>","header") %{
|
%fragment("<stdio.h>","header") %{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
|
||||||
|
# define snprintf _snprintf
|
||||||
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%fragment("<stdlib.h>","header") %{
|
%fragment("<stdlib.h>","header") %{
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# define strtoull _strtoui64
|
||||||
|
# define strtoll _strtoi64
|
||||||
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue