From c8d9ba00d305d058d3e06b54657f3cb9b0b71c43 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 15 Dec 2004 22:50:04 +0000 Subject: [PATCH] Add portable header loading for contexts git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@645 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/portable.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/portable.h b/src/portable.h index 15fc63dcab..62ff5d71ca 100644 --- a/src/portable.h +++ b/src/portable.h @@ -94,7 +94,7 @@ const char *gras_wsa_err2string(int errcode); **** Time handling ****/ -#if TIME_WITH_SYS_TIME +#ifdef TIME_WITH_SYS_TIME # include # include #else @@ -109,5 +109,14 @@ const char *gras_wsa_err2string(int errcode); #define sleep _sleep /* else defined in stdlib.h */ #endif +/**** + **** Contexts + ****/ + +#ifdef HAVE_UCONTEXT_H +# include +#else +# include "xbt/context_win32.h" /* Manual reimplementation for prehistoric platforms */ +#endif #endif /* GRAS_PORTABLE_H */ -- 2.20.1