]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40878: xlc cannot handle C99 extern inline. (GH-21891)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Aug 2020 18:37:08 +0000 (11:37 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Aug 2020 18:37:08 +0000 (20:37 +0200)
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>
Modules/_decimal/libmpdec/mpdecimal.c

index ad8db508b36f0a5a098697d9044685c30fff7f0c..28b639ccb405f688aeb24dd06a4db90d4c0e555c 100644 (file)
@@ -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