curlver.h 3.1 KB

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