Skip to content

Commit

Permalink
Use ms_struct only on Windows and x86/ppc GCC/clang
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou committed May 5, 2024
1 parent 61e92bf commit ba61051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_ctypes/_ctypes_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
return 999;
}

#if defined(MS_WIN32) || defined(__GNUC__) || defined(__clang__)
#if (defined(MS_WIN32) || ((defined(__x86_64__) || defined(__i386__) || defined(__ppc64__)) && (defined(__GNUC__) || defined(__clang__))))
struct
#ifndef MS_WIN32
__attribute__ ((ms_struct))
Expand Down

0 comments on commit ba61051

Please sign in to comment.