Skip to content

Commit 3924377

Browse files
segevfinervstinner
authored andcommitted
bpo-31018: Switch to #pragma pack from __declspec(align) (#2848)
1 parent b4c5296 commit 3924377

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/_tracemalloc.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,17 @@ typedef struct
8383
#ifdef __GNUC__
8484
__attribute__((packed))
8585
#elif defined(_MSC_VER)
86-
_declspec(align(4))
86+
#pragma pack(push, 4)
8787
#endif
8888
{
8989
/* filename cannot be NULL: "<unknown>" is used if the Python frame
9090
filename is NULL */
9191
PyObject *filename;
9292
unsigned int lineno;
9393
} frame_t;
94+
#ifdef _MSC_VER
95+
#pragma pack(pop)
96+
#endif
9497

9598

9699
typedef struct {

0 commit comments

Comments
 (0)