jpayne@69: #ifndef CURLINC_CURLVER_H jpayne@69: #define CURLINC_CURLVER_H jpayne@69: /*************************************************************************** jpayne@69: * _ _ ____ _ jpayne@69: * Project ___| | | | _ \| | jpayne@69: * / __| | | | |_) | | jpayne@69: * | (__| |_| | _ <| |___ jpayne@69: * \___|\___/|_| \_\_____| jpayne@69: * jpayne@69: * Copyright (C) 1998 - 2022, Daniel Stenberg, , et al. jpayne@69: * jpayne@69: * This software is licensed as described in the file COPYING, which jpayne@69: * you should have received as part of this distribution. The terms jpayne@69: * are also available at https://curl.se/docs/copyright.html. jpayne@69: * jpayne@69: * You may opt to use, copy, modify, merge, publish, distribute and/or sell jpayne@69: * copies of the Software, and permit persons to whom the Software is jpayne@69: * furnished to do so, under the terms of the COPYING file. jpayne@69: * jpayne@69: * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY jpayne@69: * KIND, either express or implied. jpayne@69: * jpayne@69: * SPDX-License-Identifier: curl jpayne@69: * jpayne@69: ***************************************************************************/ jpayne@69: jpayne@69: /* This header file contains nothing but libcurl version info, generated by jpayne@69: a script at release-time. This was made its own header file in 7.11.2 */ jpayne@69: jpayne@69: /* This is the global package copyright */ jpayne@69: #define LIBCURL_COPYRIGHT "1996 - 2022 Daniel Stenberg, ." jpayne@69: jpayne@69: /* This is the version number of the libcurl package from which this header jpayne@69: file origins: */ jpayne@69: #define LIBCURL_VERSION "7.87.0" jpayne@69: jpayne@69: /* The numeric version number is also available "in parts" by using these jpayne@69: defines: */ jpayne@69: #define LIBCURL_VERSION_MAJOR 7 jpayne@69: #define LIBCURL_VERSION_MINOR 87 jpayne@69: #define LIBCURL_VERSION_PATCH 0 jpayne@69: jpayne@69: /* This is the numeric version of the libcurl version number, meant for easier jpayne@69: parsing and comparisons by programs. The LIBCURL_VERSION_NUM define will jpayne@69: always follow this syntax: jpayne@69: jpayne@69: 0xXXYYZZ jpayne@69: jpayne@69: Where XX, YY and ZZ are the main version, release and patch numbers in jpayne@69: hexadecimal (using 8 bits each). All three numbers are always represented jpayne@69: using two digits. 1.2 would appear as "0x010200" while version 9.11.7 jpayne@69: appears as "0x090b07". jpayne@69: jpayne@69: This 6-digit (24 bits) hexadecimal number does not show pre-release number, jpayne@69: and it is always a greater number in a more recent release. It makes jpayne@69: comparisons with greater than and less than work. jpayne@69: jpayne@69: Note: This define is the full hex number and _does not_ use the jpayne@69: CURL_VERSION_BITS() macro since curl's own configure script greps for it jpayne@69: and needs it to contain the full number. jpayne@69: */ jpayne@69: #define LIBCURL_VERSION_NUM 0x075700 jpayne@69: jpayne@69: /* jpayne@69: * This is the date and time when the full source package was created. The jpayne@69: * timestamp is not stored in git, as the timestamp is properly set in the jpayne@69: * tarballs by the maketgz script. jpayne@69: * jpayne@69: * The format of the date follows this template: jpayne@69: * jpayne@69: * "2007-11-23" jpayne@69: */ jpayne@69: #define LIBCURL_TIMESTAMP "2022-12-21" jpayne@69: jpayne@69: #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z)) jpayne@69: #define CURL_AT_LEAST_VERSION(x,y,z) \ jpayne@69: (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z)) jpayne@69: jpayne@69: #endif /* CURLINC_CURLVER_H */