Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
consider the new macros CONTEXT_UCONTEXT and CONTEXT_THREADS
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 13 Mar 2007 13:20:37 +0000 (13:20 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 13 Mar 2007 13:20:37 +0000 (13:20 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3257 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/win32/compiler/visualc.h

index cabcec2..d4c97c8 100644 (file)
@@ -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
 
 #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
 
 #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
 
 /* 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 
 
 #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__ */
 
 
 #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */