diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-24 07:55:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 07:55:47 (GMT) |
commit | c5734998d91e9953fd179ba6ed7015b6343e8191 (patch) | |
tree | bec1c297d0facde44b327c079bf4ae9d0f19deac /Include | |
parent | e22072fb11246f125aa9ff7629c832b9e2407ef0 (diff) | |
download | cpython-c5734998d91e9953fd179ba6ed7015b6343e8191.zip cpython-c5734998d91e9953fd179ba6ed7015b6343e8191.tar.gz cpython-c5734998d91e9953fd179ba6ed7015b6343e8191.tar.bz2 |
bpo-33720: Refactor marshalling/unmarshalling floats. (GH-8071)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index c1f4c7f..f4b547a 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -525,8 +525,10 @@ extern "C" { * Usage: * int _Py_NO_INLINE x(void) { return 3; } */ -#if defined(__GNUC__) || defined(__clang__) -# define _Py_NO_INLINE __attribute__((noinline)) +#if defined(_MSC_VER) +# define _Py_NO_INLINE __declspec(noinline) +#elif defined(__GNUC__) || defined(__clang__) +# define _Py_NO_INLINE __attribute__ ((noinline)) #else # define _Py_NO_INLINE #endif |