From df12ba153cdd696420678d7cd5905ca9cd26852f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Jun 2009 00:56:14 +0000 Subject: *** empty log message *** --- coro.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coro.c') diff --git a/coro.c b/coro.c index cce35ce..0298fe7 100644 --- a/coro.c +++ b/coro.c @@ -228,6 +228,9 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz #if __CYGWIN__ ctx->env[7] = (long)((char *)sptr + ssize) - sizeof (long); ctx->env[8] = (long)coro_init; + #elif defined(__MINGW32__) + ctx->env[4] = (long)((char *)sptr + ssize) - sizeof (long); + ctx->env[5] = (long)coro_init; #elif defined(_M_IX86) ((_JUMP_BUFFER *)&ctx->env)->Eip = (long)coro_init; ((_JUMP_BUFFER *)&ctx->env)->Esp = (long)STACK_ADJUST_PTR (sptr, ssize) - sizeof (long); -- cgit v1.2.3