From e9b58ce02a862d9b6a02adf094e75a6ef0955f36 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 15 Jan 2006 03:30:24 +0000 Subject: [PATCH] add charlie's patch for MSC git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8450 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Swig/misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Swig/misc.c b/Source/Swig/misc.c index 4eb3225e9..e333cc28b 100644 --- a/Source/Swig/misc.c +++ b/Source/Swig/misc.c @@ -729,10 +729,15 @@ int Swig_scopename_check(String *s) { * Swig_string_command() * * ----------------------------------------------------------------------------- */ - #if defined(HAVE_POPEN) extern FILE *popen(const char *command, const char *type); extern int pclose(FILE *stream); +#else +# if defined_MSC_VER +# define HAVE_POPEN 1 +# define popen _popen +# define pclose _pclose +# endif #endif String *Swig_string_command(String *s) {