summaryrefslogtreecommitdiff
path: root/coro.h
diff options
context:
space:
mode:
Diffstat (limited to 'coro.h')
-rw-r--r--coro.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/coro.h b/coro.h
index 52bb428..c5cf2a4 100644
--- a/coro.h
+++ b/coro.h
@@ -208,7 +208,7 @@ void coro_destroy (coro_context *ctx);
#if !defined(CORO_LOSER) && !defined(CORO_UCONTEXT) \
&& !defined(CORO_SJLJ) && !defined(CORO_LINUX) \
&& !defined(CORO_IRIX) && !defined(CORO_ASM) \
- && !defined(CORO_PTHREAD)
+ && !defined(CORO_PTHREAD) && !defined(CORO_SJLJ_PTHREAD)
# if defined(WINDOWS) || defined(_WIN32)
# define CORO_LOSER 1 /* you don't win with windoze */
# elif defined(__linux) && (defined(__x86) || defined (__amd64))
@@ -235,7 +235,7 @@ struct coro_context {
# define coro_transfer(p,n) swapcontext (&((p)->uc), &((n)->uc))
# define coro_destroy(ctx) (void *)(ctx)
-#elif CORO_SJLJ || CORO_LOSER || CORO_LINUX || CORO_IRIX
+#elif CORO_SJLJ || CORO_LOSER || CORO_LINUX || CORO_IRIX || CORO_SJLJ_PTHREAD
# if defined(CORO_LINUX) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE /* for linux libc */