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