add charlie's patch for MSC

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-15 03:30:24 +00:00
commit d35b355f78

View file

@ -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) {