]> granicus.if.org Git - python/commitdiff
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported...
authorChristian Heimes <christian@cheimes.de>
Sun, 30 Sep 2012 13:49:56 +0000 (15:49 +0200)
committerChristian Heimes <christian@cheimes.de>
Sun, 30 Sep 2012 13:49:56 +0000 (15:49 +0200)
Modules/_decimal/libmpdec/mpdecimal.h

index d131c71441f633b664bc447c641d70408969ec72..e014f1c3a5108111a0eb21939a53eb2cb838d17c 100644 (file)
@@ -106,6 +106,11 @@ extern "C" {
   #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)