jpayne@69
|
1 #ifndef CURLINC_CURLVER_H
|
jpayne@69
|
2 #define CURLINC_CURLVER_H
|
jpayne@69
|
3 /***************************************************************************
|
jpayne@69
|
4 * _ _ ____ _
|
jpayne@69
|
5 * Project ___| | | | _ \| |
|
jpayne@69
|
6 * / __| | | | |_) | |
|
jpayne@69
|
7 * | (__| |_| | _ <| |___
|
jpayne@69
|
8 * \___|\___/|_| \_\_____|
|
jpayne@69
|
9 *
|
jpayne@69
|
10 * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
jpayne@69
|
11 *
|
jpayne@69
|
12 * This software is licensed as described in the file COPYING, which
|
jpayne@69
|
13 * you should have received as part of this distribution. The terms
|
jpayne@69
|
14 * are also available at https://curl.se/docs/copyright.html.
|
jpayne@69
|
15 *
|
jpayne@69
|
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
jpayne@69
|
17 * copies of the Software, and permit persons to whom the Software is
|
jpayne@69
|
18 * furnished to do so, under the terms of the COPYING file.
|
jpayne@69
|
19 *
|
jpayne@69
|
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
jpayne@69
|
21 * KIND, either express or implied.
|
jpayne@69
|
22 *
|
jpayne@69
|
23 * SPDX-License-Identifier: curl
|
jpayne@69
|
24 *
|
jpayne@69
|
25 ***************************************************************************/
|
jpayne@69
|
26
|
jpayne@69
|
27 /* This header file contains nothing but libcurl version info, generated by
|
jpayne@69
|
28 a script at release-time. This was made its own header file in 7.11.2 */
|
jpayne@69
|
29
|
jpayne@69
|
30 /* This is the global package copyright */
|
jpayne@69
|
31 #define LIBCURL_COPYRIGHT "1996 - 2022 Daniel Stenberg, <daniel@haxx.se>."
|
jpayne@69
|
32
|
jpayne@69
|
33 /* This is the version number of the libcurl package from which this header
|
jpayne@69
|
34 file origins: */
|
jpayne@69
|
35 #define LIBCURL_VERSION "7.87.0"
|
jpayne@69
|
36
|
jpayne@69
|
37 /* The numeric version number is also available "in parts" by using these
|
jpayne@69
|
38 defines: */
|
jpayne@69
|
39 #define LIBCURL_VERSION_MAJOR 7
|
jpayne@69
|
40 #define LIBCURL_VERSION_MINOR 87
|
jpayne@69
|
41 #define LIBCURL_VERSION_PATCH 0
|
jpayne@69
|
42
|
jpayne@69
|
43 /* This is the numeric version of the libcurl version number, meant for easier
|
jpayne@69
|
44 parsing and comparisons by programs. The LIBCURL_VERSION_NUM define will
|
jpayne@69
|
45 always follow this syntax:
|
jpayne@69
|
46
|
jpayne@69
|
47 0xXXYYZZ
|
jpayne@69
|
48
|
jpayne@69
|
49 Where XX, YY and ZZ are the main version, release and patch numbers in
|
jpayne@69
|
50 hexadecimal (using 8 bits each). All three numbers are always represented
|
jpayne@69
|
51 using two digits. 1.2 would appear as "0x010200" while version 9.11.7
|
jpayne@69
|
52 appears as "0x090b07".
|
jpayne@69
|
53
|
jpayne@69
|
54 This 6-digit (24 bits) hexadecimal number does not show pre-release number,
|
jpayne@69
|
55 and it is always a greater number in a more recent release. It makes
|
jpayne@69
|
56 comparisons with greater than and less than work.
|
jpayne@69
|
57
|
jpayne@69
|
58 Note: This define is the full hex number and _does not_ use the
|
jpayne@69
|
59 CURL_VERSION_BITS() macro since curl's own configure script greps for it
|
jpayne@69
|
60 and needs it to contain the full number.
|
jpayne@69
|
61 */
|
jpayne@69
|
62 #define LIBCURL_VERSION_NUM 0x075700
|
jpayne@69
|
63
|
jpayne@69
|
64 /*
|
jpayne@69
|
65 * This is the date and time when the full source package was created. The
|
jpayne@69
|
66 * timestamp is not stored in git, as the timestamp is properly set in the
|
jpayne@69
|
67 * tarballs by the maketgz script.
|
jpayne@69
|
68 *
|
jpayne@69
|
69 * The format of the date follows this template:
|
jpayne@69
|
70 *
|
jpayne@69
|
71 * "2007-11-23"
|
jpayne@69
|
72 */
|
jpayne@69
|
73 #define LIBCURL_TIMESTAMP "2022-12-21"
|
jpayne@69
|
74
|
jpayne@69
|
75 #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
|
jpayne@69
|
76 #define CURL_AT_LEAST_VERSION(x,y,z) \
|
jpayne@69
|
77 (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
|
jpayne@69
|
78
|
jpayne@69
|
79 #endif /* CURLINC_CURLVER_H */
|