A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add defines to windows build, to avoid breaking ucontexts examples
[simgrid.git]
/
src
/
xbt
/
win32_ucontext.c
diff --git
a/src/xbt/win32_ucontext.c
b/src/xbt/win32_ucontext.c
index b538e09fb9f4a804df3c5f5aae3e08945592eb03..d218febbb6e70ae29b9b30160541c2d2acaf1d09 100644
(file)
--- a/
src/xbt/win32_ucontext.c
+++ b/
src/xbt/win32_ucontext.c
@@
-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*);
#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_"
# error "_IA64_"
- #endif
- #ifdef _AMD64_
+ #elif defined _AMD64_
ucp->uc_mcontext.Rip = (DWORD64) func;
ucp->uc_mcontext.Rsp = (DWORD64) sp - sizeof(void*);
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 */
#endif
/* Save/Restore the full machine context */