summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coroutine/win32/Context.h4
-rw-r--r--coroutine/win64/Context.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/coroutine/win32/Context.h b/coroutine/win32/Context.h
index 95b4ccdba1..c4f041f501 100644
--- a/coroutine/win32/Context.h
+++ b/coroutine/win32/Context.h
@@ -19,10 +19,10 @@ extern "C" {
/* This doesn't include thread information block */
const size_t COROUTINE_REGISTERS = 4;
-struct coroutine_context
+typedef struct
{
void **stack_pointer;
-};
+} coroutine_context;
typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
diff --git a/coroutine/win64/Context.h b/coroutine/win64/Context.h
index b3afed691f..a72ce530f8 100644
--- a/coroutine/win64/Context.h
+++ b/coroutine/win64/Context.h
@@ -19,10 +19,10 @@ extern "C" {
const size_t COROUTINE_REGISTERS = 8;
const size_t COROUTINE_XMM_REGISTERS = 1+10*2;
-struct coroutine_context
+typedef struct
{
void **stack_pointer;
-};
+} coroutine_context;
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);