--- libcoro/coro.h 2001/07/24 20:18:12 1.4 +++ libcoro/coro.h 2001/09/03 02:50:18 1.5 @@ -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 @@ * 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 @@ # endif #endif +/*****************************************************************************/ + #if CORO_UCONTEXT #include @@ -139,7 +148,7 @@ #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