add macors for PTR2IV INT2PTR when needed, bug #1208765

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-10 09:47:39 +00:00
commit fdb55e82ab

View file

@ -93,7 +93,16 @@ extern "C" {
#ifndef pTHX_
#define pTHX_
#endif
#ifndef PTR2IV
# define PTR2IV(d) (IV)(d)
#endif
#ifndef INT2PTR
# define INT2PTR(any,d) (any)(d)
#endif
#include <string.h>
#ifdef __cplusplus