From: Christian Heimes Date: Sun, 30 Sep 2012 13:49:56 +0000 (+0200) Subject: Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported... X-Git-Tag: v3.4.0a1~2445^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72c9946718004a13c895cc54a2b82e9a50fd4ef3;p=python Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C --- diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index d131c71441..e014f1c3a5 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.h +++ b/Modules/_decimal/libmpdec/mpdecimal.h @@ -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)