[Python-checkins] cpython (3.3): Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't

christian.heimes python-checkins at python.org
Sun Sep 30 15:51:49 CEST 2012


http://hg.python.org/cpython/rev/29506c7db353
changeset: 79323:29506c7db353
branch: 3.3
parent: 79290:1861937676e1
user: Christian Heimes <christian at cheimes.de>
date: Sun Sep 30 15:49:56 2012 +0200
summary:
 Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
files:
 Modules/_decimal/libmpdec/mpdecimal.h | 5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h
--- a/Modules/_decimal/libmpdec/mpdecimal.h
+++ b/Modules/_decimal/libmpdec/mpdecimal.h
@@ -106,6 +106,11 @@
 #endif
 #endif
 
+/* ASM isn't available in strict ansi C mode */
+#if defined(ASM) && defined(__STRICT_ANSI__)
+ #undef ASM
+ #define ANSI
+#endif
 
 /* BEGIN CONFIG_64 */
 #if defined(CONFIG_64)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /