From: cherierm Date: Tue, 13 Mar 2007 13:20:37 +0000 (+0000) Subject: consider the new macros CONTEXT_UCONTEXT and CONTEXT_THREADS X-Git-Tag: v3.3~2102 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6fc1924f4999f9eada5c9368eab11676f5e9c06a consider the new macros CONTEXT_UCONTEXT and CONTEXT_THREADS git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3257 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index cabcec2058..d4c97c8b73 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -348,10 +348,15 @@ the double. For now, GRAS requires the structures to be compacted. */ #define va_copy(d, s) __VA_COPY_USE(d, s) #endif -#ifdef USE_UCONTEXT -#undef USE_UCONTEXT +/* xbt contexts are based on our threads implementation */ +#ifndef CONTEXT_THREADS +#define CONTEXT_THREADS #endif +/* xbt contexts are not based on ucontext */ +#ifdef CONTEXT_UCONTEXT +#undef CONTEXT_UCONTEXT +#endif /* Define to id of used va_copy() implementation */ #define __VA_COPY_USE __VA_COPY_USE_C99 @@ -398,10 +403,7 @@ typedef int socklen_t; #define __EX_MCTX_SJLJ__ #endif -/* this is used in context managment. */ -#ifndef USE_WIN_THREADS -#define USE_WIN_THREADS -#endif + #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */