Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix raw_makecontext and raw_swapcontext on win64
authorunknown <pierre@.(none)>
Tue, 21 Feb 2012 15:37:58 +0000 (16:37 +0100)
committerunknown <pierre@.(none)>
Tue, 21 Feb 2012 15:38:19 +0000 (16:38 +0100)
src/simix/smx_context_raw.c

index 7fb23eb..fa653a7 100644 (file)
@@ -97,10 +97,14 @@ __asm__ (
 );
 #elif PROCESSOR_x86_64
 __asm__ (
-#if defined(APPLE) || defined(_WIN32)
+#if defined(APPLE)
    ".text\n"
    ".globl _raw_makecontext\n"
    "_raw_makecontext:\n"
+#elif defined(_WIN32)
+   ".text\n"
+   ".globl raw_makecontext\n"
+   "raw_makecontext:\n"
 #else
    ".text\n"
    ".globl raw_makecontext\n"
@@ -128,10 +132,14 @@ __asm__ (
 );
 
 __asm__ (
-#if defined(APPLE) || defined(_WIN32)
+#if defined(APPLE)
    ".text\n"
    ".globl _raw_swapcontext\n"
    "_raw_swapcontext:\n"
+#elif defined(_WIN32)
+   ".text\n"
+   ".globl raw_swapcontext\n"
+   "raw_swapcontext:\n"
 #else
    ".text\n"
    ".globl raw_swapcontext\n"