Skip to content
Snippets Groups Projects
Commit bf2b4597 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

AmigaOS support.

Rev: lib/modules/Process.pmod:1.21
Rev: src/cpp.c:1.31
parent 52ad0db9
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,11 @@ object spawn(string s,object|void stdin,object|void stdout,object|void stderr,
if(stdin) data->stdin=stdin;
if(stdout) data->stdout=stdout;
if(stderr) data->stderr=stderr;
#ifdef __NT__
#if defined(__NT__) || defined(__amigaos__)
return create_process(split_quoted_string(s),data);
#else /* !__NT__ */
#else /* !__NT__||__amigaos__ */
return create_process(({ "/bin/sh", "-c", s }),data);
#endif /* __NT__ */
#endif /* __NT__||__amigaos__ */
#else
object pid;
......
......@@ -5,7 +5,7 @@
\*/
/*
* $Id: cpp.c,v 1.30 1998/11/22 11:02:39 hubbe Exp $
* $Id: cpp.c,v 1.31 1998/11/23 00:50:29 marcus Exp $
*/
#include "global.h"
#include "dynamic_buffer.h"
......@@ -2122,6 +2122,9 @@ void f_cpp(INT32 args)
#ifdef __NT__
simple_add_define(&this,"__NT__"," 1 ");
#endif
#ifdef __amigaos__
simple_add_define(&this,"__amigaos__"," 1 ");
#endif
for (tmpf=pike_predefs; tmpf; tmpf=tmpf->next)
simple_add_define(&this, tmpf->name, tmpf->value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment