## Initialization and Versions

Initialization and Versions — Library version numbers.

## Synopsis

    #include <gdk-pixbuf/gdk-pixbuf.h>

    extern      const char *gdk_pixbuf_version;
    #define     GDK_PIXBUF_VERSION
    #define     GDK_PIXBUF_MAJOR
    #define     GDK_PIXBUF_MINOR
    #define     GDK_PIXBUF_MICRO

## Description

These macros and variables let you check the version of gdk-pixbuf you're linking against.

## Details

### gdk_pixbuf_version

    extern const char *gdk_pixbuf_version;

Contains the full version of the gdk-pixbuf library as a string. This is the version currently in use by a running program.

### GDK_PIXBUF_VERSION

    #define GDK_PIXBUF_VERSION "2.4.13"

Contains the full version of the gdk-pixbuf header as a string. This is the version being compiled against; contrast with gdk_pixbuf_version.

### GDK_PIXBUF_MAJOR

    #define GDK_PIXBUF_MAJOR (2)

Major version of gdk-pixbuf library, that is the first "0" in "0.8.0" for example.

### GDK_PIXBUF_MINOR

    #define GDK_PIXBUF_MINOR (4)

Minor version of gdk-pixbuf library, that is the "8" in "0.8.0" for example.

### GDK_PIXBUF_MICRO

    #define GDK_PIXBUF_MICRO (13)

Micro version of gdk-pixbuf library, that is the last "0" in "0.8.0" for example.