diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-06-18 23:29:15 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-06-18 23:29:15 +0000 |
commit | c337dddbfa3846ae90096200a605dfb86e4b48e4 (patch) | |
tree | a38b0f4795c1d64da9e509b1538d72cc328981ec | |
parent | 2e043acb5ab823f30845045d58525d42c490df1e (diff) |
switched NT to _WIN32 since its automatically defined on all appropriate platforms
svn path=/trunk/externals/control/popen/; revision=13674
-rw-r--r-- | popen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ); |