summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-05-14 17:09:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-14 17:10:04 +0200
commit180c75eb63ae95c41c692957ccd13321e44d4e9e (patch)
tree200be8f65c2608762070b6007243ded576bae88a /include
parentd836c9fee4bbef249dc7bf281336fb41eb3b77c7 (diff)
downloadcurl-180c75eb63ae95c41c692957ccd13321e44d4e9e.tar.gz
curl: show the libcurl release date in --version output
... and support and additional "security patched" date for those who enhance older versions that way. Pass on the define CURL_PATCHSTAMP with a date for that. Building with non-release headers shows the date as [unreleased]. Also: this changes the date format generated in the curlver.h file to be "YYYY-MM-DD" (no name of the day or month, no time, no time zone) to make it easier on the eye and easier to parse. Example (new) date string: 2017-05-09 Suggested-by: Brian Childs Closes #1474
Diffstat (limited to 'include')
-rw-r--r--include/curl/curlver.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/curl/curlver.h b/include/curl/curlver.h
index 5d3e160f0..227571cd3 100644
--- a/include/curl/curlver.h
+++ b/include/curl/curlver.h
@@ -64,11 +64,11 @@
* timestamp is not stored in git, as the timestamp is properly set in the
* tarballs by the maketgz script.
*
- * The format of the date should follow this template:
+ * The format of the date follows this template:
*
- * "Mon Feb 12 11:35:33 UTC 2007"
+ * "2007-11-23"
*/
-#define LIBCURL_TIMESTAMP "DEV"
+#define LIBCURL_TIMESTAMP "[unreleased]"
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z)
#define CURL_AT_LEAST_VERSION(x,y,z) \