add charlie's patch for MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0ca87bb6f6
commit
f62c92a5d4
1 changed files with 5 additions and 0 deletions
|
|
@ -730,8 +730,13 @@ int Swig_scopename_check(String *s) {
|
||||||
*
|
*
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
#if defined(HAVE_POPEN)
|
#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 FILE *popen(const char *command, const char *type);
|
||||||
extern int pclose(FILE *stream);
|
extern int pclose(FILE *stream);
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# if defined(_MSC_VER)
|
# if defined(_MSC_VER)
|
||||||
# define HAVE_POPEN 1
|
# define HAVE_POPEN 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue