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