summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_tracemalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index d983336..6966b86 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -83,7 +83,7 @@ typedef struct
#ifdef __GNUC__
__attribute__((packed))
#elif defined(_MSC_VER)
-_declspec(align(4))
+#pragma pack(push, 4)
#endif
{
/* filename cannot be NULL: "<unknown>" is used if the Python frame
@@ -91,6 +91,9 @@ _declspec(align(4))
PyObject *filename;
unsigned int lineno;
} frame_t;
+#ifdef _MSC_VER
+#pragma pack(pop)
+#endif
typedef struct {