Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code clean-up
[simgrid.git] / src / simix / smx_context_sysv_private.h
index 47d8096..5714534 100644 (file)
@@ -1,6 +1,7 @@
 /* Functions of sysv context mecanism: lua inherites them                   */
 
-/* Copyright (c) 2004-2010 the SimGrid team. All rights reserved.           */
+/* Copyright (c) 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -22,8 +23,11 @@ SG_BEGIN_DECL()
 #endif /*CONTEXT_STACK_SIZE */
 
 #include "context_sysv_config.h"        /* loads context system definitions */
+#ifdef _XBT_WIN32
+#include <win32_ucontext.h>           /* context relative declarations */
+#else
 #include <ucontext.h>           /* context relative declarations */
-
+#endif
 typedef struct s_smx_ctx_sysv {
   s_smx_ctx_base_t super;       /* Fields of super implementation */
   ucontext_t uc;                /* the thread that execute the code */