curlver.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef CURLINC_CURLVER_H
  2. #define CURLINC_CURLVER_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 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.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. * SPDX-License-Identifier: curl
  24. *
  25. ***************************************************************************/
  26. /* This header file contains nothing but libcurl version info, generated by
  27. a script at release-time. This was made its own header file in 7.11.2 */
  28. /* This is the global package copyright */
  29. #define LIBCURL_COPYRIGHT "Daniel Stenberg, <daniel@haxx.se>."
  30. /* This is the version number of the libcurl package from which this header
  31. file origins: */
  32. #define LIBCURL_VERSION "8.1.1"
  33. /* The numeric version number is also available "in parts" by using these
  34. defines: */
  35. #define LIBCURL_VERSION_MAJOR 8
  36. #define LIBCURL_VERSION_MINOR 1
  37. #define LIBCURL_VERSION_PATCH 1
  38. /* This is the numeric version of the libcurl version number, meant for easier
  39. parsing and comparisons by programs. The LIBCURL_VERSION_NUM define will
  40. always follow this syntax:
  41. 0xXXYYZZ
  42. Where XX, YY and ZZ are the main version, release and patch numbers in
  43. hexadecimal (using 8 bits each). All three numbers are always represented
  44. using two digits. 1.2 would appear as "0x010200" while version 9.11.7
  45. appears as "0x090b07".
  46. This 6-digit (24 bits) hexadecimal number does not show pre-release number,
  47. and it is always a greater number in a more recent release. It makes
  48. comparisons with greater than and less than work.
  49. Note: This define is the full hex number and _does not_ use the
  50. CURL_VERSION_BITS() macro since curl's own configure script greps for it
  51. and needs it to contain the full number.
  52. */
  53. #define LIBCURL_VERSION_NUM 0x080101
  54. /*
  55. * This is the date and time when the full source package was created. The
  56. * timestamp is not stored in git, as the timestamp is properly set in the
  57. * tarballs by the maketgz script.
  58. *
  59. * The format of the date follows this template:
  60. *
  61. * "2007-11-23"
  62. */
  63. #define LIBCURL_TIMESTAMP "2023-05-23"
  64. #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
  65. #define CURL_AT_LEAST_VERSION(x,y,z) \
  66. (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
  67. #endif /* CURLINC_CURLVER_H */