better solution for warning of perl+cygwin

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-22 21:04:57 +00:00
commit 6d586307a2
2 changed files with 1 additions and 9 deletions

View file

@ -232,7 +232,7 @@ SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *
} else {
tmp = SvIV(tsv);
}
voidptr = (void *)(SWIGINTPTR)tmp;
voidptr = INT2PTR(void *,tmp);
} else if (! SvOK(sv)) { /* Check for undef */
*(ptr) = (void *) 0;
return SWIG_OK;

View file

@ -81,11 +81,3 @@
# define SWIGSTDCALL
# endif
#endif
#if defined(_MSC_VER)
# define SWIGINTPTR long
#else
# include <inttypes.h>
# define SWIGINTPTR intptr_t
#endif