From f62c92a5d4df3ae1c8e3d42e07d44d92ff04487a Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 15 Jan 2006 03:35:32 +0000 Subject: [PATCH] add charlie's patch for MSC git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8453 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Swig/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SWIG/Source/Swig/misc.c b/SWIG/Source/Swig/misc.c index cf8d9a13e..b04f36508 100644 --- a/SWIG/Source/Swig/misc.c +++ b/SWIG/Source/Swig/misc.c @@ -730,8 +730,13 @@ int Swig_scopename_check(String *s) { * * ----------------------------------------------------------------------------- */ #if defined(HAVE_POPEN) +# if defined(_MSC_VER) +# define popen _popen +# define pclose _pclose +# else extern FILE *popen(const char *command, const char *type); extern int pclose(FILE *stream); +# endif #else # if defined(_MSC_VER) # define HAVE_POPEN 1