Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Includes context_win32.h file header to allow compilation on Builder C++ compiler.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 25 Sep 2006 16:12:51 +0000 (16:12 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 25 Sep 2006 16:12:51 +0000 (16:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2804 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/context_win32.c

index aa8b55d..cdfa1da 100644 (file)
@@ -17,7 +17,7 @@
    under the LGPL licence, what I here do. */
 
 /*#include "context_win32.h" Not needed since this file is to be included*/
    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"
 int getcontext(ucontext_t *ucp)
 {
        int ret;
 int getcontext(ucontext_t *ucp)
 {
        int ret;
@@ -67,7 +67,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);