#endif
/* The compiler has `snprintf' function. */
-#if defined(HAVE_SNPRINTF)
- #undef HAVE_SNPRINTF 1
+#ifndef HAVE_SNPRINTF
+ #define HAVE_SNPRINTF 1
#endif
/* No `swapcontext' function. */
#endif
/* The compiler has the `vsnprintf' function. */
-/*#if !defined(HAVE_VSNPRINTF)
+#ifndef HAVE_VSNPRINTF
#define HAVE_VSNPRINTF 1
-#endif*/
+#endif
-/* enable the asprintf replacement */
-#if !defined(NEED_ASPRINTF)
- #define NEED_ASPRINTF 1
+/* disable the asprintf replacement */
+#ifndef NEED_ASPRINTF
+ #define NEED_ASPRINTF
#endif
-/*#ifdef NEED_ASPRINTF
-#undef NEED_ASPRINTF
-#endif*/
-
-/* enable the vasprintf replacement */
-#if !defined(NEED_VASPRINTF)
- #define NEED_VASPRINTF 1
+/* disable the vasprintf replacement */
+#ifndef NEED_VASPRINTF
+ #define NEED_VASPRINTF
#endif
/* "disable the snprintf replacement ( this function is broken on system v only" */
-/* FIXME TO ANALYZE */
-#if defined(PREFER_PORTABLE_SNPRINTF)
- #undef PREFER_PORTABLE_SNPRINTF
-#endif
#if !defined(PREFER_PORTABLE_SNPRINTF)
#define PREFER_PORTABLE_SNPRINTF
#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
/* types */
typedef unsigned int uint32_t;
-typedef int socklen_t;
/* Choose setjmp as exception implementation */
#ifndef __EX_MCTX_SJLJ__
#define __EX_MCTX_SJLJ__
#endif
-/* this is used in context managment. */
-#ifndef USE_WIN_THREADS
-#define USE_WIN_THREADS
-#endif
+typedef int ssize_t;
#endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */