On December 16, 2002 02:37 pm, Alberto Massari wrote: > +void WINAPI SwitchToFiber(LPVOID lpFiber) > +{ > +#ifdef HAVE_UCONTEXT_H > + PHFIBER pFiber,pCurrentFiber; > + pFiber=(PHFIBER)lpFiber; > + pCurrentFiber=(PHFIBER)TlsGetValue(fiber_tls_index); > + TRACE("Switching from %p to %p\n",pFiber,pCurrentFiber); > + TlsSetValue(fiber_tls_index,pFiber); > + swapcontext(&pCurrentFiber->context,&pFiber->context); > +#else > + FIXME("stub\n"); > +#endif > +}
Can you (pretty) please do without the ifdefs? They can probably be located in only one spot, if you need to test for HAVE_UCONTEXT_H. -- Dimi.