Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
define CONTEXT_THREADS to 1
[simgrid.git] / src / win32 / compiler / visualc.h
index cabcec2..699003d 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
 
-#ifdef USE_UCONTEXT
-#undef USE_UCONTEXT
+/* xbt contexts are based on our threads implementation */
+#ifndef CONTEXT_THREADS
+#define CONTEXT_THREADS 1
 #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__ */