summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/libmpdec
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/libmpdec
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/libmpdec')
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h
index b43231c..5ca7413 100644
--- a/Modules/_decimal/libmpdec/mpdecimal.h
+++ b/Modules/_decimal/libmpdec/mpdecimal.h
@@ -108,9 +108,13 @@ MPD_PRAGMA(MPD_HIDE_SYMBOLS_START)
#define MPD_MAJOR_VERSION 2
#define MPD_MINOR_VERSION 4
-#define MPD_MICRO_VERSION 0
+#define MPD_MICRO_VERSION 1
-#define MPD_VERSION "2.4.0"
+#define MPD_VERSION "2.4.1"
+
+#define MPD_VERSION_HEX ((MPD_MAJOR_VERSION << 24) | \
+ (MPD_MINOR_VERSION << 16) | \
+ (MPD_MICRO_VERSION << 8))
const char *mpd_version(void);