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
Check 64 or 32 arch with size of void*
[simgrid.git]
/
src
/
simix
/
smx_context_raw.c
diff --git
a/src/simix/smx_context_raw.c
b/src/simix/smx_context_raw.c
index 0284d5e05bc736784a38356c5ce039df4800cc76..059870eb840dc5c699801f6eeca6d99f253b5c9d 100644
(file)
--- a/
src/simix/smx_context_raw.c
+++ b/
src/simix/smx_context_raw.c
@@
-38,7
+38,7
@@
extern void raw_swapcontext(raw_stack_t* old, raw_stack_t new);
#ifdef PROCESSOR_i686
__asm__ (
#ifdef PROCESSOR_i686
__asm__ (
-#if
def APPLE
+#if
defined(APPLE) || defined(_WIN32)
".text\n"
".globl _raw_makecontext\n"
"_raw_makecontext:\n"
".text\n"
".globl _raw_makecontext\n"
"_raw_makecontext:\n"
@@
-64,7
+64,7
@@
__asm__ (
);
__asm__ (
);
__asm__ (
-#if
def APPLE
+#if
defined(APPLE) || defined(_WIN32)
".text\n"
".globl _raw_swapcontext\n"
"_raw_swapcontext:\n"
".text\n"
".globl _raw_swapcontext\n"
"_raw_swapcontext:\n"
@@
-90,7
+90,7
@@
__asm__ (
);
#elif PROCESSOR_x86_64
__asm__ (
);
#elif PROCESSOR_x86_64
__asm__ (
-#if
def APPLE
+#if
defined(APPLE) || defined(_WIN32)
".text\n"
".globl _raw_makecontext\n"
"_raw_makecontext:\n"
".text\n"
".globl _raw_makecontext\n"
"_raw_makecontext:\n"
@@
-121,7
+121,7
@@
__asm__ (
);
__asm__ (
);
__asm__ (
-#if
def APPLE
+#if
defined(APPLE) || defined(_WIN32)
".text\n"
".globl _raw_swapcontext\n"
"_raw_swapcontext:\n"
".text\n"
".globl _raw_swapcontext\n"
"_raw_swapcontext:\n"