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