1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[Win32] fixed PACKED_STRUCT_UNALIGNED on x86

Use MACHINE for x86 CPU family, ARCH is CPU model name (i386) and
cannot be x86.
This commit is contained in:
Nobuyoshi Nakada 2021-06-09 18:49:14 +09:00
parent 73f9831a57
commit 9ba335e2eb
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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