summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorxtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>2021-06-21 14:46:20 +0200
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-20 00:15:30 +0900
commite32fe3ce7611f58f260959f96757704aee17a18e (patch)
treef23ca624eadcaaded98a6445788769fb707fdfc6 /win32
parent637d7288f3b8d803c4207f5f842d408d48c20411 (diff)
MINGW: _WIN64 is not defined on i386-mingw32 + ucrt.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4599
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index b0e43ed45f..241c9ac248 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2578,7 +2578,7 @@ set_pioinfo_extra(void)
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)
found:
p += sizeof(PIOINFO_MARK) - 1;
-#if _WIN64
+#ifdef _WIN64
rel = *(int32_t*)(p);
rip = p + sizeof(int32_t);
__pioinfo = (ioinfo**)(rip + rel);