diff src/oct-procbuf.cc @ 6096:40212bfaed1d

[project @ 2006-10-26 01:57:49 by jwe]
author jwe
date Thu, 26 Oct 2006 01:57:50 +0000
parents 86ee3cc8d8d2
children 70158d7ab8ef
line wrap: on
line diff
--- a/src/oct-procbuf.cc
+++ b/src/oct-procbuf.cc
@@ -54,7 +54,7 @@
 #if defined (__CYGWIN__)
 #define W32POPEN popen
 #define W32PCLOSE pclose
-#elif defined (__MINGW32__)
+#elif defined (__MINGW32__) || defined (_MSC_VER)
 #define W32POPEN _popen
 #define W32PCLOSE _pclose
 #endif
@@ -66,7 +66,7 @@
 octave_procbuf *
 octave_procbuf::open (const char *command, int mode)
 {
-#if defined (__CYGWIN__) || defined (__MINGW32__)
+#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (_MSC_VER)
 
   if (is_open ()) 
     return 0;
@@ -172,9 +172,7 @@
 octave_procbuf *
 octave_procbuf::close (void)
 {
-
-
-#if defined (__CYGWIN__) || defined (__MINGW32__)
+#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (_MSC_VER)
 
   if (f)
     {