--- cvsroot/libcoro/coro.c 2001/09/03 03:36:00 1.6 +++ cvsroot/libcoro/coro.c 2001/09/03 03:42:13 1.7 @@ -32,15 +32,15 @@ #include "coro.h" -#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX - /* IRIX is decidedly NON-unix */ #if __sgi -# define STACK_ADJUST(sp,ss) ((ss) - 8 + (char *)(sp)) +# define STACK_ADJUST(sp,ss) ((char *)(sp) + (ss) - 8) #else -# define STACK_ADJUST(sp,ss) (ss) +# define STACK_ADJUST(sp,ss) (sp) #endif +#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX + #include static volatile coro_func coro_init_func;