summaryrefslogtreecommitdiff
path: root/includes/Task.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-04 11:18:21 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-04 11:18:21 +0200
commit7b3f9f74fb9bd764c1382849b9d66eb50ccf4e17 (patch)
treefbfc14b788b3d0d0635b54a6e295fefb1c4ab830 /includes/Task.h
parentb384e35959a17fc5b85655184534b96add5904b5 (diff)
Removing libcoro.HEADmaster
Diffstat (limited to 'includes/Task.h')
-rw-r--r--includes/Task.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/Task.h b/includes/Task.h
index 0f04b32..2577761 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -1,10 +1,10 @@
#pragma once
#include <stdlib.h>
-#include <functional>
-#ifndef _WIN32
-#include <coro.h>
+#ifdef __linux
+#include <ucontext.h>
#endif
+#include <functional>
#include <ev++.h>
#include <list>
#include <Exceptions.h>
@@ -243,7 +243,7 @@ class Task {
}
void * m_stack = NULL;
#ifndef _WIN32
- coro_context m_ctx;
+ ucontext_t m_ctx;
#else
void * m_fiber = NULL;
#endif