ruby-changes:68042
From: xtkoba <ko1@a...>
Date: Mon, 20 Sep 2021 00:15:52 +0900 (JST)
Subject: [ruby-changes:68042] e32fe3ce76 (master): MINGW: _WIN64 is not defined on i386-mingw32 + ucrt.
https://git.ruby-lang.org/ruby.git/commit/?id=e32fe3ce76 From e32fe3ce7611f58f260959f96757704aee17a18e Mon Sep 17 00:00:00 2001 From: "xtkoba (Tee KOBAYASHI)" <xtkoba+ruby@g...> Date: Mon, 21 Jun 2021 14:46:20 +0200 Subject: MINGW: _WIN64 is not defined on i386-mingw32 + ucrt. --- win32/win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/win32.c b/win32/win32.c index b0e43ed..241c9ac 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2578,7 +2578,7 @@ set_pioinfo_extra(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L2578 char *pend = p; /* _osfile(fh) & FDEV */ -# if _WIN64 +# ifdef _WIN64 int32_t rel; char *rip; /* add rsp, _ */ @@ -2620,7 +2620,7 @@ set_pioinfo_extra(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L2620 found: p += sizeof(PIOINFO_MARK) - 1; -#if _WIN64 +#ifdef _WIN64 rel = *(int32_t*)(p); rip = p + sizeof(int32_t); __pioinfo = (ioinfo**)(rip + rel); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/