From 72c9946718004a13c895cc54a2b82e9a50fd4ef3 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 30 Sep 2012 15:49:56 +0200 Subject: [PATCH] Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C --- Modules/_decimal/libmpdec/mpdecimal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index d131c71441f..e014f1c3a51 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)