[Python-checkins] bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)

Stefan Krah webhook-mailer at python.org
Sat Aug 15 10:06:37 EDT 2020


https://github.com/python/cpython/commit/40e700ad042089120456cc2ee79b8ca69479416b
commit: 40e700ad042089120456cc2ee79b8ca69479416b
branch: master
author: Stefan Krah <skrah at bytereef.org>
committer: GitHub <noreply at github.com>
date: 2020-08-15T16:06:21+02:00
summary:

bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)

This applies to the default "extc99" mode.  Python does not compile with "stdc99".

files:
M Modules/_decimal/libmpdec/mpdecimal.c

diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index b3ec13a509bb4..f0e4d7f343a43 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



More information about the Python-checkins mailing list