summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-30 13:49:56 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-09-30 13:49:56 (GMT)
commit72c9946718004a13c895cc54a2b82e9a50fd4ef3 (patch)
tree78327e8b5e82f876f7dccc2ca3b09117a3a507da
parentf23e2b67ad7e601cbbaa8c6c1bbdec4eaf571b87 (diff)
downloadcpython-72c9946718004a13c895cc54a2b82e9a50fd4ef3.zip
cpython-72c9946718004a13c895cc54a2b82e9a50fd4ef3.tar.gz
cpython-72c9946718004a13c895cc54a2b82e9a50fd4ef3.tar.bz2
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h
index d131c71..e014f1c 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)