tiffvers.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* tiffvers.h version information is updated according to version information
  2. * in configure.ac */
  3. /* clang-format off */
  4. /* clang-format disabled because FindTIFF.cmake is very sensitive to the
  5. * formatting of below line being a single line.
  6. * Furthermore, configure_file variables of type "" are
  7. * modified by clang-format and won't be substituted by CMake.
  8. */
  9. #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.6.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
  10. /*
  11. * This define can be used in code that requires
  12. * compilation-related definitions specific to a
  13. * version or versions of the library. Runtime
  14. * version checking should be done based on the
  15. * string returned by TIFFGetVersion.
  16. */
  17. #define TIFFLIB_VERSION 20230908
  18. /* The following defines have been added in 4.5.0 */
  19. #define TIFFLIB_MAJOR_VERSION 4
  20. #define TIFFLIB_MINOR_VERSION 6
  21. #define TIFFLIB_MICRO_VERSION 0
  22. #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.6.0"
  23. /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is
  24. * greater or equal to major.minor.micro
  25. */
  26. #define TIFFLIB_AT_LEAST(major, minor, micro) \
  27. (TIFFLIB_MAJOR_VERSION > (major) || \
  28. (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \
  29. (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \
  30. TIFFLIB_MICRO_VERSION >= (micro)))
  31. /* clang-format on */