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
Added round trip time contraint to the SDP program, this parameter
[simgrid.git]
/
src
/
xbt
/
context_win32.c
diff --git
a/src/xbt/context_win32.c
b/src/xbt/context_win32.c
index
aa8b55d
..
4781823
100644
(file)
--- a/
src/xbt/context_win32.c
+++ b/
src/xbt/context_win32.c
@@
-16,7
+16,8
@@
/* The original author granted me (Martin Quinson) to redistribute this work
under the LGPL licence, what I here do. */
/* The original author granted me (Martin Quinson) to redistribute this work
under the LGPL licence, what I here do. */
-/*#include "context_win32.h" Not needed since this file is to be included*/
+#include "context_win32.h" /* Current file is to be included when cross-compiling,
+ but not during native builds. So this include is needed */
int getcontext(ucontext_t *ucp)
{
int getcontext(ucontext_t *ucp)
{
@@
-67,7
+68,7
@@
int makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
va_start (ap, argc);
for (i=0; i<argc; i++) {
memcpy(sp, ap, 8);
va_start (ap, argc);
for (i=0; i<argc; i++) {
memcpy(sp, ap, 8);
- ap +=8;
+
(char*)
ap +=8;
sp += 8;
}
va_end(ap);
sp += 8;
}
va_end(ap);