[Python-checkins] cpython (merge 3.3 -> default): 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:50 CEST 2012


http://hg.python.org/cpython/rev/256ab69f5911
changeset:   79324:256ab69f5911
parent:      79319:d2f9a0acdbf4
parent:      79323:29506c7db353
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Sep 30 15:50:20 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