changeset 6097:d65b53711bb8

[project @ 2006-10-26 02:01:42 by jwe]
author jwe
date Thu, 26 Oct 2006 02:01:42 +0000
parents 40212bfaed1d
children 70158d7ab8ef
files src/ChangeLog src/oct-prcstrm.cc
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Oct 26 01:57:50 2006 +0000
+++ b/src/ChangeLog	Thu Oct 26 02:01:42 2006 +0000
@@ -12,6 +12,8 @@
 	(octave_procbuf::open, octave_procbuf::close) [_MSC_VER]:
 	Use the same code as for __MINGW32__ and __CYGWIN__.
 
+	* oct-prcstrm.cc [_MSC_VER]: Define popen and pclose.
+
 2006-10-25  John W. Eaton  <jwe@octave.org>
 
 	* sysdep.cc (w32_set_octave_home): Correctly initialize bin_dir.
--- a/src/oct-prcstrm.cc	Thu Oct 26 01:57:50 2006 +0000
+++ b/src/oct-prcstrm.cc	Thu Oct 26 02:01:42 2006 +0000
@@ -29,6 +29,11 @@
 
 #include "oct-prcstrm.h"
 
+#if defined (_MSC_VER)
+#define popen _popen
+#define pclose _pclose
+#endif
+
 static int
 cxx_pclose (FILE *f)
 {