Skip to content

Commit 4d1c22e

Browse files
committed
[3.5] bpo-31018: Switch to GH-pragma pack from __declspec(align) (pythonGH-2848)
(cherry picked from commit 3924377)
1 parent 73bff8c commit 4d1c22e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎Modules/_tracemalloc.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,15 @@ typedef struct
6262
#ifdef __GNUC__
6363
__attribute__((packed))
6464
#elif defined(_MSC_VER)
65-
_declspec(align(4))
65+
#pragma pack(push, 4)
6666
#endif
6767
{
6868
PyObject *filename;
6969
unsigned int lineno;
7070
} frame_t;
71+
#ifdef _MSC_VER
72+
#pragma pack(pop)
73+
#endif
7174

7275
typedef struct {
7376
Py_uhash_t hash;

0 commit comments

Comments
 (0)