summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/_decimal.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2013-11-24 22:05:57 (GMT)
committerLarry Hastings <larry@hastings.org>2013-11-24 22:05:57 (GMT)
commit99e101013fa36da37e47a5a18b5a62d621b0efb9 (patch)
treef603004433e242a1eb26573cd9ec54846229d071 /Modules/_decimal/_decimal.c
parentd34b620cc3b8b2326b511f98b0ca439ad97b83b8 (diff)
parent2480c2ed593a164fe3a4821a13d5867a0a7102ed (diff)
downloadcpython-99e101013fa36da37e47a5a18b5a62d621b0efb9.zip
cpython-99e101013fa36da37e47a5a18b5a62d621b0efb9.tar.gz
cpython-99e101013fa36da37e47a5a18b5a62d621b0efb9.tar.bz2
Merged 3.4.0b1 release head back into trunk.
Diffstat (limited to 'Modules/_decimal/_decimal.c')
-rw-r--r--Modules/_decimal/_decimal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index 06c2c39..ac20308 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -39,6 +39,11 @@
#include "memory.h"
+#if MPD_MAJOR_VERSION != 2
+ #error "libmpdec major version 2 required"
+#endif
+
+
/*
* Type sizes with assertions in mpdecimal.h and pyport.h:
* sizeof(size_t) == sizeof(Py_ssize_t)
@@ -5730,7 +5735,8 @@ PyInit__decimal(void)
}
/* Add specification version number */
- CHECK_INT(PyModule_AddStringConstant(m, "__version__", " 1.70"));
+ CHECK_INT(PyModule_AddStringConstant(m, "__version__", "1.70"));
+ CHECK_INT(PyModule_AddStringConstant(m, "__libmpdec_version__", mpd_version()));
return m;