LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Macros | Functions
Version information

Identify the headers used to compile and the library loaded at runtime. More...

Collaboration diagram for Version information:

Macros

#define TIFFLIB_VERSION_STR   "LIBTIFF, Version 4.7.2\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
 Define the library version and copyright banner as a string literal.
 
#define TIFFLIB_VERSION   20260627
 Define the release date as a decimal YYYYMMDD integer.
 
#define TIFFLIB_MAJOR_VERSION   4
 Define the major release version number.
 
#define TIFFLIB_MINOR_VERSION   7
 Define the minor release version number.
 
#define TIFFLIB_MICRO_VERSION   2
 Define the micro release version number.
 
#define TIFFLIB_VERSION_STR_MAJ_MIN_MIC   "4.7.2"
 Define the release version string without the copyright banner.
 
#define TIFFLIB_AT_LEAST(major, minor, micro)
 Test whether the compile-time version is at least a given release.
 

Functions

const char * TIFFGetVersion (void)
 Return the version and copyright banner of the loaded library.
 

Detailed Description

Identify the headers used to compile and the library loaded at runtime.

Macro Definition Documentation

◆ TIFFLIB_AT_LEAST

#define TIFFLIB_AT_LEAST (   major,
  minor,
  micro 
)
Value:
(TIFFLIB_MAJOR_VERSION > (major) || \
(TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \
(TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \
TIFFLIB_MICRO_VERSION >= (micro)))
#define TIFFLIB_MICRO_VERSION
Define the micro release version number.
Definition tiffvers.h:45
#define TIFFLIB_MINOR_VERSION
Define the minor release version number.
Definition tiffvers.h:41
#define TIFFLIB_MAJOR_VERSION
Define the major release version number.
Definition tiffvers.h:37

Test whether the compile-time version is at least a given release.

Compares the major, minor, and micro components lexicographically; it does not inspect the loaded library or distinguish prerelease suffixes. Usable in preprocessor conditionals. Arguments can be evaluated more than once; pass integer version components without side effects.

Parameters
[in]majorMajor version component to compare against.
[in]minorMinor version component to compare against.
[in]microMicro version component to compare against.
Returns
Nonzero if these headers are for the requested release or a later release; zero otherwise. The macro performs no allocation or I/O and has no failure result.
Since
4.5.0

Definition at line 67 of file tiffvers.h.

◆ TIFFLIB_MAJOR_VERSION

#define TIFFLIB_MAJOR_VERSION   4

Define the major release version number.

Since
4.5.0

Definition at line 37 of file tiffvers.h.

◆ TIFFLIB_MICRO_VERSION

#define TIFFLIB_MICRO_VERSION   2

Define the micro release version number.

Since
4.5.0

Definition at line 45 of file tiffvers.h.

◆ TIFFLIB_MINOR_VERSION

#define TIFFLIB_MINOR_VERSION   7

Define the minor release version number.

Since
4.5.0

Definition at line 41 of file tiffvers.h.

◆ TIFFLIB_VERSION

#define TIFFLIB_VERSION   20260627

Define the release date as a decimal YYYYMMDD integer.

This historical version marker supports date-based compile-time checks. Prefer TIFFLIB_AT_LEAST() for comparisons of release version numbers.

Definition at line 32 of file tiffvers.h.

◆ TIFFLIB_VERSION_STR

#define TIFFLIB_VERSION_STR   "LIBTIFF, Version 4.7.2\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."

Define the library version and copyright banner as a string literal.

Includes embedded newlines. TIFFGetVersion() returns the corresponding banner compiled into the loaded library.

Definition at line 25 of file tiffvers.h.

◆ TIFFLIB_VERSION_STR_MAJ_MIN_MIC

#define TIFFLIB_VERSION_STR_MAJ_MIN_MIC   "4.7.2"

Define the release version string without the copyright banner.

Since
4.5.0

Definition at line 49 of file tiffvers.h.

Function Documentation

◆ TIFFGetVersion()

const char * TIFFGetVersion ( void  )
extern

Return the version and copyright banner of the loaded library.

The banner identifies the runtime library, which can differ from the headers used to compile an application. It contains embedded newlines. No I/O, allocation, state changes, or diagnostic callbacks occur.

Returns
A non-NULL pointer to immutable, null-terminated static storage. The library retains ownership; do not modify or free the string. It remains valid while the library is loaded. There is no failure result.
See also
TIFFLIB_VERSION_STR

Definition at line 41 of file tif_version.c.

References TIFFVersion.