ifndef __PANGO_VERSION_H__
define __PANGO_VERSION_H__

include pango/pango-features.inc

include glib.inc

define PANGO_VERSION_1_2        G_ENCODE_VERSION (1, 2)
define PANGO_VERSION_1_4        G_ENCODE_VERSION (1, 4)
define PANGO_VERSION_1_6        G_ENCODE_VERSION (1, 6)
define PANGO_VERSION_1_8        G_ENCODE_VERSION (1, 8)
define PANGO_VERSION_1_10       G_ENCODE_VERSION (1, 10)
define PANGO_VERSION_1_12       G_ENCODE_VERSION (1, 12)
define PANGO_VERSION_1_14       G_ENCODE_VERSION (1, 14)
define PANGO_VERSION_1_16       G_ENCODE_VERSION (1, 16)
define PANGO_VERSION_1_18       G_ENCODE_VERSION (1, 18)
define PANGO_VERSION_1_20       G_ENCODE_VERSION (1, 20)
define PANGO_VERSION_1_22       G_ENCODE_VERSION (1, 22)
define PANGO_VERSION_1_24       G_ENCODE_VERSION (1, 24)
define PANGO_VERSION_1_26       G_ENCODE_VERSION (1, 26)
define PANGO_VERSION_1_28       G_ENCODE_VERSION (1, 28)
define PANGO_VERSION_1_30       G_ENCODE_VERSION (1, 30)
define PANGO_VERSION_1_32       G_ENCODE_VERSION (1, 32)
define PANGO_VERSION_1_34       G_ENCODE_VERSION (1, 34)
define PANGO_VERSION_1_36       G_ENCODE_VERSION (1, 36)
define PANGO_VERSION_1_38       G_ENCODE_VERSION (1, 38)
define PANGO_VERSION_1_40       G_ENCODE_VERSION (1, 40)
define PANGO_VERSION_1_42       G_ENCODE_VERSION (1, 42)
define PANGO_VERSION_1_44       G_ENCODE_VERSION (1, 44)
define PANGO_VERSION_1_46       G_ENCODE_VERSION (1, 46)
define PANGO_VERSION_1_48       G_ENCODE_VERSION (1, 48)
define PANGO_VERSION_1_50       G_ENCODE_VERSION (1, 50)
define PANGO_VERSION_1_52       G_ENCODE_VERSION (1, 52)

if (PANGO_VERSION_MINOR mod 2)
define PANGO_VERSION_CUR_STABLE G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR + 1)
else
define PANGO_VERSION_CUR_STABLE G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR)
endif

if (PANGO_VERSION_MINOR mod 2)
define PANGO_VERSION_PREV_STABLE G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR - 1)
else
define PANGO_VERSION_PREV_STABLE G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR - 2)
endif

ifndef PANGO_VERSION_MIN_REQUIRED
define PANGO_VERSION_MIN_REQUIRED PANGO_VERSION_CUR_STABLE
endif
ifndef PANGO_VERSION_MAX_ALLOWED
define PANGO_VERSION_MAX_ALLOWED PANGO_VERSION_CUR_STABLE
endif

if PANGO_VERSION_MIN_REQUIRED GT PANGO_VERSION_CUR_STABLE
.err <"PANGO_VERSION_MIN_REQUIRED must be = PANGO_VERSION_CUR_STABLE">
endif
if PANGO_VERSION_MAX_ALLOWED LT PANGO_VERSION_MIN_REQUIRED
.err <"PANGO_VERSION_MAX_ALLOWED must be >= PANGO_VERSION_MIN_REQUIRED">
endif
if PANGO_VERSION_MIN_REQUIRED LT PANGO_VERSION_1_2
.err <"PANGO_VERSION_MIN_REQUIRED must be >= PANGO_VERSION_1_2">
endif

endif
