diff options
author | Segev Finer <segev208@gmail.com> | 2017-07-25 08:47:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-07-25 08:47:43 (GMT) |
commit | 39243779f4c97ec6f700fa73c007ca66dfa9408e (patch) | |
tree | 542e617ad8724b04052c92e50d83a7bbc7e8f584 /Modules | |
parent | b4c52966c810b5c5e088fceff403247f610b7d13 (diff) | |
download | cpython-39243779f4c97ec6f700fa73c007ca66dfa9408e.zip cpython-39243779f4c97ec6f700fa73c007ca66dfa9408e.tar.gz cpython-39243779f4c97ec6f700fa73c007ca66dfa9408e.tar.bz2 |
bpo-31018: Switch to #pragma pack from __declspec(align) (#2848)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tracemalloc.c | 5 |
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 { |