#ifndef UCONTEXT_H
#define UCONTEXT_H
-#include <windows.h>
+#ifndef S_SPLINT_S
+# include <windows.h>
+#endif
typedef struct __stack {
void *ss_sp;
} 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 */