From c337dddbfa3846ae90096200a605dfb86e4b48e4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 18 Jun 2010 23:29:15 +0000 Subject: switched NT to _WIN32 since its automatically defined on all appropriate platforms svn path=/trunk/externals/control/popen/; revision=13674 --- popen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popen.c b/popen.c index 547fac4..0272714 100644 --- a/popen.c +++ b/popen.c @@ -48,7 +48,7 @@ static void popen_anything(t_popen *x, t_symbol *s, int argc, t_atom *argv) strcat(cmd, arg); post("sending %s",cmd); -#ifdef NT +#ifdef _WIN32 if( (pPipe = _popen( cmd, "rt" )) == NULL ) #else if( (pPipe = popen( cmd, "r" )) == NULL ) @@ -60,7 +60,7 @@ static void popen_anything(t_popen *x, t_symbol *s, int argc, t_atom *argv) if( fgets( x->buffer, 128, pPipe ) != NULL ) popen_out(x); } -#ifdef NT +#ifdef _WIN32 _pclose( pPipe ); #else pclose( pPipe ); -- cgit v1.2.1