X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3854ce9a561a4e13199774523542a0dfefc376da..f43bc484f697666583ba779d3adb325f1eee498b:/src/xbt/win32_ucontext.c diff --git a/src/xbt/win32_ucontext.c b/src/xbt/win32_ucontext.c index 092e3cc8f5..d218febbb6 100644 --- a/src/xbt/win32_ucontext.c +++ b/src/xbt/win32_ucontext.c @@ -26,7 +26,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#include "win32_ucontext.h" +#include "xbt/win32_ucontext.h" int getcontext(ucontext_t * ucp) { @@ -68,13 +68,13 @@ int makecontext(ucontext_t * ucp, void (*func) (), int argc, ...) #ifdef _I_X86_ ucp->uc_mcontext.Eip = (DWORD) func; ucp->uc_mcontext.Esp = (DWORD) sp - sizeof(void*); - #endif - #ifdef _IA64_ + #elif defined _IA64_ # error "_IA64_" - #endif - #ifdef _AMD64_ + #elif defined _AMD64_ ucp->uc_mcontext.Rip = (DWORD64) func; ucp->uc_mcontext.Rsp = (DWORD64) sp - sizeof(void*); + #else + #error "No architecture defined for Windows build. need either _AMD64_ or _I_X86_" #endif /* Save/Restore the full machine context */