Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
now we don't need this file
[simgrid.git] / src / xbt / context_win32.h
index fa5fa05..022be48 100644 (file)
@@ -19,7 +19,9 @@
 #ifndef UCONTEXT_H
 #define UCONTEXT_H
 
-#include <windows.h>
+#ifndef S_SPLINT_S
+#  include <windows.h>
+#endif
 
 typedef struct __stack {
        void *ss_sp;
@@ -39,9 +41,9 @@ typedef struct __ucontext {
 } ucontext_t;
 
 
-int getcontext(ucontext_t *ucp);
-int setcontext(const ucontext_t *ucp);
-int makecontext(ucontext_t *, void (*)(), int, ...);
-int swapcontext(ucontext_t *, const ucontext_t *);
+XBT_PUBLIC int getcontext(ucontext_t *ucp);
+XBT_PUBLIC int setcontext(const ucontext_t *ucp);
+XBT_PUBLIC int makecontext(ucontext_t *, void (*)(), int, ...);
+XBT_PUBLIC int swapcontext(ucontext_t *, const ucontext_t *);
 
 #endif /* UCONTEXT_H */