fix cygwin warning for perl

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8520 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-22 20:24:04 +00:00
commit bd11299e1e
2 changed files with 8 additions and 1 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 *)tmp;
voidptr = (void *)(SWIGINTPTR)tmp;
} else if (! SvOK(sv)) { /* Check for undef */
*(ptr) = (void *) 0;
return SWIG_OK;

View file

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