]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)
authorStefan Krah <skrah@bytereef.org>
Sat, 15 Aug 2020 14:06:21 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Aug 2020 14:06:21 +0000 (16:06 +0200)
This applies to the default "extc99" mode.  Python does not compile with "stdc99".

Modules/_decimal/libmpdec/mpdecimal.c

index b3ec13a509bb4ca12c4104207e9333ba3f406014..f0e4d7f343a43825e2009ad188f36af77442daf8 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