Skip to content

Commit

Permalink
curlver: introducing new version number (checking) macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed May 18, 2015
1 parent d69eee0 commit 39b9bf6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/curl/curlver.h
Expand Up @@ -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
Expand All @@ -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 */

0 comments on commit 39b9bf6

Please sign in to comment.