Skip to content

Commit ba61051

Browse files
committed
Use ms_struct only on Windows and x86/ppc GCC/clang
1 parent 61e92bf commit ba61051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/_ctypes_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
761761
return 999;
762762
}
763763

764-
#if defined(MS_WIN32) || defined(__GNUC__) || defined(__clang__)
764+
#if (defined(MS_WIN32) || ((defined(__x86_64__) || defined(__i386__) || defined(__ppc64__)) && (defined(__GNUC__) || defined(__clang__))))
765765
struct
766766
#ifndef MS_WIN32
767767
__attribute__ ((ms_struct))

0 commit comments

Comments
 (0)