Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added round trip time contraint to the SDP program, this parameter
[simgrid.git] / src / xbt / context_win32.c
index aa8b55d..4781823 100644 (file)
@@ -16,7 +16,8 @@
 /* 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)
 {
@@ -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);
-               ap +=8;
+               (char*)ap +=8;
                sp += 8;
        }
        va_end(ap);