Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't try to load windows.h because ucontext were not found
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 28 Feb 2005 17:09:20 +0000 (17:09 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 28 Feb 2005 17:09:20 +0000 (17:09 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1107 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h

index 0c56508..420ebd3 100644 (file)
@@ -125,7 +125,9 @@ const char *gras_wsa_err2string(int errcode);
 # ifndef S_SPLINT_S /* This header drives splint into the wall */
 #   include <ucontext.h>
 # endif 
 # ifndef S_SPLINT_S /* This header drives splint into the wall */
 #   include <ucontext.h>
 # endif 
-#else
+#endif
+
+#ifdef _WIN32
 #  include "xbt/context_win32.h" /* Manual reimplementation for prehistoric platforms */
 #endif
 
 #  include "xbt/context_win32.h" /* Manual reimplementation for prehistoric platforms */
 #endif