aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-14 23:33:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 11:09:13 +0200
commit39b9bf60d13ff7cb62a6a031c210d27a32113c4f (patch)
tree9ff9cbca5a3bc12259b9722b2bd95ddaec276bbd /include
parentd69eee0964e807158d2aa9acec2fec08ab0b2aba (diff)
curlver: introducing new version number (checking) macros
Diffstat (limited to 'include')
-rw-r--r--include/curl/curlver.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/curl/curlver.h b/include/curl/curlver.h
index c0501c7c5..ad85e5093 100644
--- a/include/curl/curlver.h
+++ b/include/curl/curlver.h
@@ -53,7 +53,9 @@
and it is always a greater number in a more recent release. It makes
comparisons with greater than and less than work.
*/
-#define LIBCURL_VERSION_NUM 0x072B00
+#define LIBCURL_VERSION_NUM CURL_VERSION_BITS(LIBCURL_VERSION_MAJOR, \
+ LIBCURL_VERSION_MINOR, \
+ LIBCURL_VERSION_PATCH)
/*
* This is the date and time when the full source package was created. The
@@ -66,4 +68,8 @@
*/
#define LIBCURL_TIMESTAMP "DEV"
+#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z)
+#define CURL_AT_LEAST_VERSION(x,y,z) \
+ (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
+
#endif /* __CURL_CURLVER_H */