more fixes to MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
eee527b8b8
commit
0ee6a0446a
6 changed files with 21 additions and 8 deletions
|
|
@ -343,15 +343,21 @@
|
|||
%fragment("<stdio.h>","header") %{
|
||||
#include <stdio.h>
|
||||
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
|
||||
# ifndef snprintf
|
||||
# define snprintf _snprintf
|
||||
# endif
|
||||
#endif
|
||||
%}
|
||||
|
||||
%fragment("<stdlib.h>","header") %{
|
||||
#include <stdlib.h>
|
||||
#ifdef _MSC_VER
|
||||
# ifndef strtoull
|
||||
# define strtoull _strtoui64
|
||||
# endif
|
||||
# ifndef strtoll
|
||||
# define strtoll _strtoi64
|
||||
# endif
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue