Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add portable header loading for contexts
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 15 Dec 2004 22:50:04 +0000 (22:50 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 15 Dec 2004 22:50:04 +0000 (22:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@645 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h

index 15fc63d..62ff5d7 100644 (file)
@@ -94,7 +94,7 @@ const char *gras_wsa_err2string(int errcode);
  **** Time handling
  ****/
 
-#if TIME_WITH_SYS_TIME
+#ifdef TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # include <time.h>
 #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 <ucontext.h>
+#else
+#  include "xbt/context_win32.h" /* Manual reimplementation for prehistoric platforms */
+#endif
 
 #endif /* GRAS_PORTABLE_H */