Kaydet (Commit) 39243779 authored tarafından Segev Finer's avatar Segev Finer Kaydeden (comit) Victor Stinner

bpo-31018: Switch to #pragma pack from __declspec(align) (#2848)

üst b4c52966
...@@ -83,7 +83,7 @@ typedef struct ...@@ -83,7 +83,7 @@ typedef struct
#ifdef __GNUC__ #ifdef __GNUC__
__attribute__((packed)) __attribute__((packed))
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
_declspec(align(4)) #pragma pack(push, 4)
#endif #endif
{ {
/* filename cannot be NULL: "<unknown>" is used if the Python frame /* filename cannot be NULL: "<unknown>" is used if the Python frame
...@@ -91,6 +91,9 @@ _declspec(align(4)) ...@@ -91,6 +91,9 @@ _declspec(align(4))
PyObject *filename; PyObject *filename;
unsigned int lineno; unsigned int lineno;
} frame_t; } frame_t;
#ifdef _MSC_VER
#pragma pack(pop)
#endif
typedef struct { typedef struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment