From 0ba0ad8b415bd9601d05e14a30d34344dfcc1b71 Mon Sep 17 00:00:00 2001 From: samuel Date: Tue, 20 Nov 2018 10:18:01 +0000 Subject: Fix struct usage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- coroutine/win32/Context.h | 4 ++-- coroutine/win64/Context.h | 4 ++-- 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); -- cgit v1.2.3