summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-08-15 18:37:08 (GMT)
committerGitHub <noreply@github.com>2020-08-15 18:37:08 (GMT)
commit1864eacc22485b26c0ec0a059c9330f877861afb (patch)
tree373f8981212bf4b336cf7fa852c21ab212c18b34
parentfc8ffe27b6f29d67b76fb2ef57466c95af5a9f82 (diff)
downloadcpython-1864eacc22485b26c0ec0a059c9330f877861afb.zip
cpython-1864eacc22485b26c0ec0a059c9330f877861afb.tar.gz
cpython-1864eacc22485b26c0ec0a059c9330f877861afb.tar.bz2
bpo-40878: xlc cannot handle C99 extern inline. (GH-21891)
This applies to the default "extc99" mode. Python does not compile with "stdc99". (cherry picked from commit 40e700ad042089120456cc2ee79b8ca69479416b) Authored-by: Stefan Krah <skrah@bytereef.org>
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index ad8db50..28b639c 100644
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -64,7 +64,7 @@
#if defined(_MSC_VER)
#define ALWAYS_INLINE __forceinline
-#elif defined(LEGACY_COMPILER)
+#elif defined(__IBMC__) || defined(LEGACY_COMPILER)
#define ALWAYS_INLINE
#undef inline
#define inline