From 1a785df222780bdd7bae43b343622150cf934cee Mon Sep 17 00:00:00 2001 From: root Date: Mon, 3 Sep 2001 02:50:18 +0000 Subject: *** empty log message *** --- coro.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'coro.h') diff --git a/coro.h b/coro.h index 0fc2858..42bb76c 100644 --- a/coro.h +++ b/coro.h @@ -73,6 +73,10 @@ * this automatically selects a suitable workaround for this platform. * (untested) * + * -DCORO_IRIX + * + * SGI's version of Microsoft's NT ;) + * * If you define neither of these symbols, coro.h will try to autodetect * the model. This currently works for CORO_LOOSE only. For the other * alternatives you should check (e.g. using autoconf) and define the @@ -115,8 +119,11 @@ void coro_transfer(coro_context *prev, coro_context *next); * That was it. No other user-visible functions are implemented here. */ +/*****************************************************************************/ + #if !defined(CORO_LOOSE) && !defined(CORO_UCONTEXT) \ - && !defined(CORO_SJLJ) && !defined(CORO_LINUX) + && !defined(CORO_SJLJ) && !defined(CORO_LINUX) \ + && !defined(CORO_IRIX) # if defined(WINDOWS) # define CORO_LOOSE 1 /* you don't win with windoze */ # elif defined(__linux) && defined(__x86) @@ -129,6 +136,8 @@ error unknown or unsupported architecture # endif #endif +/*****************************************************************************/ + #if CORO_UCONTEXT #include @@ -139,7 +148,7 @@ struct coro_context { #define coro_transfer(p,n) swapcontext(&((p)->uc), &((n)->uc)) -#elif CORO_SJLJ || CORO_LOOSE || CORO_LINUX +#elif CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX #include -- cgit v1.2.3