bpo-31018: Switch to #pragma pack from __declspec(align) (#2848) · python/cpython@3924377 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 3924377
authored and
committed
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -83,14 +83,17 @@ typedef struct | ||
83 | 83 | #ifdef __GNUC__ |
84 | 84 | __attribute__((packed)) |
85 | 85 | #elif defined(_MSC_VER) |
86 | -_declspec(align(4)) | |
86 | +#pragma pack(push, 4) | |
87 | 87 | #endif |
88 | 88 | { |
89 | 89 | /* filename cannot be NULL: "" is used if the Python frame |
90 | 90 | filename is NULL */ |
91 | 91 | PyObject *filename; |
92 | 92 | unsigned int lineno; |
93 | 93 | } frame_t; |
94 | +#ifdef _MSC_VER | |
95 | +#pragma pack(pop) | |
96 | +#endif | |
94 | 97 | |
95 | 98 | |
96 | 99 | typedef struct { |