diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-09 18:49:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-09 18:49:14 +0900 |
commit | 9ba335e2eb79b1a75166828f437b71a1398ec3c5 (patch) | |
tree | e8e8ab75b567b664ac936cca6efc54963c59bea5 /win32 | |
parent | 73f9831a57e133ab5645221df862a176a42f6685 (diff) |
[Win32] fixed PACKED_STRUCT_UNALIGNED on x86
Use MACHINE for x86 CPU family, ARCH is CPU model name (i386) and
cannot be x86.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index c88ae6f9d1..1d77b74edd 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -700,7 +700,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub !else #define PACKED_STRUCT(x) x !endif -!if "$(ARCH)" == "x86" || "$(ARCH)" == "x64" +!if "$(MACHINE)" == "x86" || "$(ARCH)" == "x64" #define PACKED_STRUCT_UNALIGNED(x) PACKED_STRUCT(x) !else #define PACKED_STRUCT_UNALIGNED(x) x |