summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/_decimal.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2014-08-26 19:31:47 (GMT)
committerStefan Krah <skrah@bytereef.org>2014-08-26 19:31:47 (GMT)
commitcf26115651c4c5cfc92776fd7204d7a218241e88 (patch)
treefeadaf2def9e0d5776bcc46a90b30909deb84d4f /Modules/_decimal/_decimal.c
parent298131a44896a4fec1ea829814ad52409d59aba5 (diff)
downloadcpython-cf26115651c4c5cfc92776fd7204d7a218241e88.zip
cpython-cf26115651c4c5cfc92776fd7204d7a218241e88.tar.gz
cpython-cf26115651c4c5cfc92776fd7204d7a218241e88.tar.bz2
Introduce and check for MPD_VERSION_HEX for precise management of builds
with an external libmpdec.
Diffstat (limited to 'Modules/_decimal/_decimal.c')
-rw-r--r--Modules/_decimal/_decimal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index 8be9be6..f000887 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -39,8 +39,8 @@
#include "memory.h"
-#if MPD_MAJOR_VERSION != 2
- #error "libmpdec major version 2 required"
+#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100
+ #error "libmpdec version >= 2.4.1 required"
#endif