1/* Pango - Internationalized text layout and rendering library
2 * Copyright (C) 1999 Red Hat Software
3 * Copyright (C) 2012 Ryan Lortie, Matthias Clasen and Emmanuele Bassi
4 * Copyright (C) 2016 Chun-wei Fan
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __PANGO_VERSION_H__
21#define __PANGO_VERSION_H__
22
23#include <pango/pango-features.h>
24
25#include <glib.h>
26
27#ifndef _PANGO_EXTERN
28#define _PANGO_EXTERN extern
29#endif
30
31#define PANGO_AVAILABLE_IN_ALL _PANGO_EXTERN
32
33/* XXX: Every new stable minor release bump should add a macro here */
34
35/**
36 * PANGO_VERSION_1_2:
37 *
38 * A macro that evaluates to the 1.2 version of Pango, in a format
39 * that can be used by the C pre-processor.
40 *
41 * Since: 1.42
42 */
43#define PANGO_VERSION_1_2 (G_ENCODE_VERSION (1, 2))
44
45/**
46 * PANGO_VERSION_1_4:
47 *
48 * A macro that evaluates to the 1.4 version of Pango, in a format
49 * that can be used by the C pre-processor.
50 *
51 * Since: 1.42
52 */
53#define PANGO_VERSION_1_4 (G_ENCODE_VERSION (1, 4))
54
55/**
56 * PANGO_VERSION_1_6:
57 *
58 * A macro that evaluates to the 1.6 version of Pango, in a format
59 * that can be used by the C pre-processor.
60 *
61 * Since: 1.42
62 */
63#define PANGO_VERSION_1_6 (G_ENCODE_VERSION (1, 6))
64
65/**
66 * PANGO_VERSION_1_8:
67 *
68 * A macro that evaluates to the 1.8 version of Pango, in a format
69 * that can be used by the C pre-processor.
70 *
71 * Since: 1.42
72 */
73#define PANGO_VERSION_1_8 (G_ENCODE_VERSION (1, 8))
74
75/**
76 * PANGO_VERSION_1_10:
77 *
78 * A macro that evaluates to the 1.10 version of Pango, in a format
79 * that can be used by the C pre-processor.
80 *
81 * Since: 1.42
82 */
83#define PANGO_VERSION_1_10 (G_ENCODE_VERSION (1, 10))
84
85/**
86 * PANGO_VERSION_1_12:
87 *
88 * A macro that evaluates to the 1.12 version of Pango, in a format
89 * that can be used by the C pre-processor.
90 *
91 * Since: 1.42
92 */
93#define PANGO_VERSION_1_12 (G_ENCODE_VERSION (1, 12))
94
95/**
96 * PANGO_VERSION_1_14:
97 *
98 * A macro that evaluates to the 1.14 version of Pango, in a format
99 * that can be used by the C pre-processor.
100 *
101 * Since: 1.42
102 */
103#define PANGO_VERSION_1_14 (G_ENCODE_VERSION (1, 14))
104
105/**
106 * PANGO_VERSION_1_16:
107 *
108 * A macro that evaluates to the 1.16 version of Pango, in a format
109 * that can be used by the C pre-processor.
110 *
111 * Since: 1.42
112 */
113#define PANGO_VERSION_1_16 (G_ENCODE_VERSION (1, 16))
114
115/**
116 * PANGO_VERSION_1_18:
117 *
118 * A macro that evaluates to the 1.18 version of Pango, in a format
119 * that can be used by the C pre-processor.
120 *
121 * Since: 1.42
122 */
123#define PANGO_VERSION_1_18 (G_ENCODE_VERSION (1, 18))
124
125/**
126 * PANGO_VERSION_1_20:
127 *
128 * A macro that evaluates to the 1.20 version of Pango, in a format
129 * that can be used by the C pre-processor.
130 *
131 * Since: 1.42
132 */
133#define PANGO_VERSION_1_20 (G_ENCODE_VERSION (1, 20))
134
135/**
136 * PANGO_VERSION_1_22:
137 *
138 * A macro that evaluates to the 1.22 version of Pango, in a format
139 * that can be used by the C pre-processor.
140 *
141 * Since: 1.42
142 */
143#define PANGO_VERSION_1_22 (G_ENCODE_VERSION (1, 22))
144
145/**
146 * PANGO_VERSION_1_24:
147 *
148 * A macro that evaluates to the 1.24 version of Pango, in a format
149 * that can be used by the C pre-processor.
150 *
151 * Since: 1.42
152 */
153#define PANGO_VERSION_1_24 (G_ENCODE_VERSION (1, 24))
154
155/**
156 * PANGO_VERSION_1_26:
157 *
158 * A macro that evaluates to the 1.26 version of Pango, in a format
159 * that can be used by the C pre-processor.
160 *
161 * Since: 1.42
162 */
163#define PANGO_VERSION_1_26 (G_ENCODE_VERSION (1, 26))
164
165/**
166 * PANGO_VERSION_1_28:
167 *
168 * A macro that evaluates to the 1.28 version of Pango, in a format
169 * that can be used by the C pre-processor.
170 *
171 * Since: 1.42
172 */
173#define PANGO_VERSION_1_28 (G_ENCODE_VERSION (1, 28))
174
175/**
176 * PANGO_VERSION_1_30:
177 *
178 * A macro that evaluates to the 1.30 version of Pango, in a format
179 * that can be used by the C pre-processor.
180 *
181 * Since: 1.42
182 */
183#define PANGO_VERSION_1_30 (G_ENCODE_VERSION (1, 30))
184
185/**
186 * PANGO_VERSION_1_32:
187 *
188 * A macro that evaluates to the 1.32 version of Pango, in a format
189 * that can be used by the C pre-processor.
190 *
191 * Since: 1.42
192 */
193#define PANGO_VERSION_1_32 (G_ENCODE_VERSION (1, 32))
194
195/**
196 * PANGO_VERSION_1_34:
197 *
198 * A macro that evaluates to the 1.34 version of Pango, in a format
199 * that can be used by the C pre-processor.
200 *
201 * Since: 1.42
202 */
203#define PANGO_VERSION_1_34 (G_ENCODE_VERSION (1, 34))
204
205/**
206 * PANGO_VERSION_1_36:
207 *
208 * A macro that evaluates to the 1.36 version of Pango, in a format
209 * that can be used by the C pre-processor.
210 *
211 * Since: 1.42
212 */
213#define PANGO_VERSION_1_36 (G_ENCODE_VERSION (1, 36))
214
215/**
216 * PANGO_VERSION_1_38:
217 *
218 * A macro that evaluates to the 1.38 version of Pango, in a format
219 * that can be used by the C pre-processor.
220 *
221 * Since: 1.42
222 */
223#define PANGO_VERSION_1_38 (G_ENCODE_VERSION (1, 38))
224
225/**
226 * PANGO_VERSION_1_40:
227 *
228 * A macro that evaluates to the 1.40 version of Pango, in a format
229 * that can be used by the C pre-processor.
230 *
231 * Since: 1.42
232 */
233#define PANGO_VERSION_1_40 (G_ENCODE_VERSION (1, 40))
234
235/**
236 * PANGO_VERSION_1_42:
237 *
238 * A macro that evaluates to the 1.42 version of Pango, in a format
239 * that can be used by the C pre-processor.
240 *
241 * Since: 1.42
242 */
243#define PANGO_VERSION_1_42 (G_ENCODE_VERSION (1, 42))
244
245/**
246 * PANGO_VERSION_1_44:
247 *
248 * A macro that evaluates to the 1.44 version of Pango, in a format
249 * that can be used by the C pre-processor.
250 *
251 * Since: 1.44
252 */
253#define PANGO_VERSION_1_44 (G_ENCODE_VERSION (1, 44))
254
255/**
256 * PANGO_VERSION_1_46:
257 *
258 * A macro that evaluates to the 1.46 version of Pango, in a format
259 * that can be used by the C pre-processor.
260 *
261 * Since: 1.46
262 */
263#define PANGO_VERSION_1_46 (G_ENCODE_VERSION (1, 46))
264
265/**
266 * PANGO_VERSION_1_48:
267 *
268 * A macro that evaluates to the 1.48 version of Pango, in a format
269 * that can be used by the C pre-processor.
270 *
271 * Since: 1.48
272 */
273#define PANGO_VERSION_1_48 (G_ENCODE_VERSION (1, 48))
274
275/**
276 * PANGO_VERSION_1_50:
277 *
278 * A macro that evaluates to the 1.50 version of Pango, in a format
279 * that can be used by the C pre-processor.
280 *
281 * Since: 1.50
282 */
283#define PANGO_VERSION_1_50 (G_ENCODE_VERSION (1, 50))
284
285/**
286 * PANGO_VERSION_1_52:
287 *
288 * A macro that evaluates to the 1.52 version of Pango, in a format
289 * that can be used by the C pre-processor.
290 *
291 * Since: 1.52
292 */
293#define PANGO_VERSION_1_52 (G_ENCODE_VERSION (1, 52))
294
295/* evaluates to the current stable version; for development cycles,
296 * this means the next stable target
297 */
298#if (PANGO_VERSION_MINOR % 2)
299#define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR + 1))
300#else
301#define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR))
302#endif
303
304/* evaluates to the previous stable version */
305#if (PANGO_VERSION_MINOR % 2)
306#define PANGO_VERSION_PREV_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR - 1))
307#else
308#define PANGO_VERSION_PREV_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR - 2))
309#endif
310
311/**
312 * PANGO_VERSION_MIN_REQUIRED:
313 *
314 * A macro that should be defined by the user prior to including
315 * the pango.h header.
316 * The definition should be one of the predefined Pango version
317 * macros: %PANGO_VERSION_1_2, %PANGO_VERSION_1_4,...
318 *
319 * This macro defines the earliest version of Pango that the package is
320 * required to be able to compile against.
321 *
322 * If the compiler is configured to warn about the use of deprecated
323 * functions, then using functions that were deprecated in version
324 * %PANGO_VERSION_MIN_REQUIRED or earlier will cause warnings (but
325 * using functions deprecated in later releases will not).
326 *
327 * Since: 1.42
328 */
329/* If the package sets PANGO_VERSION_MIN_REQUIRED to some future
330 * PANGO_VERSION_X_Y value that we don't know about, it will compare as
331 * 0 in preprocessor tests.
332 */
333#ifndef PANGO_VERSION_MIN_REQUIRED
334# define PANGO_VERSION_MIN_REQUIRED (PANGO_VERSION_CUR_STABLE)
335#elif PANGO_VERSION_MIN_REQUIRED == 0
336# undef PANGO_VERSION_MIN_REQUIRED
337# define PANGO_VERSION_MIN_REQUIRED (PANGO_VERSION_CUR_STABLE + 2)
338#endif
339
340/**
341 * PANGO_VERSION_MAX_ALLOWED:
342 *
343 * A macro that should be defined by the user prior to including
344 * the glib.h header.
345 * The definition should be one of the predefined Pango version
346 * macros: %PANGO_VERSION_1_2, %PANGO_VERSION_1_4,...
347 *
348 * This macro defines the latest version of the Pango API that the
349 * package is allowed to make use of.
350 *
351 * If the compiler is configured to warn about the use of deprecated
352 * functions, then using functions added after version
353 * %PANGO_VERSION_MAX_ALLOWED will cause warnings.
354 *
355 * Unless you are using PANGO_VERSION_CHECK() or the like to compile
356 * different code depending on the Pango version, then this should be
357 * set to the same value as %PANGO_VERSION_MIN_REQUIRED.
358 *
359 * Since: 1.42
360 */
361#if !defined (PANGO_VERSION_MAX_ALLOWED) || (PANGO_VERSION_MAX_ALLOWED == 0)
362# undef PANGO_VERSION_MAX_ALLOWED
363# define PANGO_VERSION_MAX_ALLOWED (PANGO_VERSION_CUR_STABLE)
364#endif
365
366/* sanity checks */
367#if PANGO_VERSION_MIN_REQUIRED > PANGO_VERSION_CUR_STABLE
368#error "PANGO_VERSION_MIN_REQUIRED must be <= PANGO_VERSION_CUR_STABLE"
369#endif
370#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_MIN_REQUIRED
371#error "PANGO_VERSION_MAX_ALLOWED must be >= PANGO_VERSION_MIN_REQUIRED"
372#endif
373#if PANGO_VERSION_MIN_REQUIRED < PANGO_VERSION_1_2
374#error "PANGO_VERSION_MIN_REQUIRED must be >= PANGO_VERSION_1_2"
375#endif
376
377/* These macros are used to mark deprecated functions in Pango headers,
378 * and thus have to be exposed in installed headers.
379 */
380#ifdef PANGO_DISABLE_DEPRECATION_WARNINGS
381# define PANGO_DEPRECATED _PANGO_EXTERN
382# define PANGO_DEPRECATED_FOR(f) _PANGO_EXTERN
383# define PANGO_UNAVAILABLE(maj,min) _PANGO_EXTERN
384#else
385# define PANGO_DEPRECATED G_DEPRECATED _PANGO_EXTERN
386# define PANGO_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _PANGO_EXTERN
387# define PANGO_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min) _PANGO_EXTERN
388#endif
389
390/* XXX: Every new stable minor release should add a set of macros here */
391#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_2
392# define PANGO_DEPRECATED_IN_1_2 PANGO_DEPRECATED
393# define PANGO_DEPRECATED_IN_1_2_FOR(f) PANGO_DEPRECATED_FOR(f)
394#else
395# define PANGO_DEPRECATED_IN_1_2 _PANGO_EXTERN
396# define PANGO_DEPRECATED_IN_1_2_FOR(f) _PANGO_EXTERN
397#endif
398
399#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_2
400# define PANGO_AVAILABLE_IN_1_2 PANGO_UNAVAILABLE(1, 2)
401#else
402# define PANGO_AVAILABLE_IN_1_2 _PANGO_EXTERN
403#endif
404
405#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_4
406# define PANGO_DEPRECATED_IN_1_4 PANGO_DEPRECATED
407# define PANGO_DEPRECATED_IN_1_4_FOR(f) PANGO_DEPRECATED_FOR(f)
408#else
409# define PANGO_DEPRECATED_IN_1_4 _PANGO_EXTERN
410# define PANGO_DEPRECATED_IN_1_4_FOR(f) _PANGO_EXTERN
411#endif
412
413#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_4
414# define PANGO_AVAILABLE_IN_1_4 PANGO_UNAVAILABLE(1, 4)
415#else
416# define PANGO_AVAILABLE_IN_1_4 _PANGO_EXTERN
417#endif
418
419
420#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_6
421# define PANGO_DEPRECATED_IN_1_6 PANGO_DEPRECATED
422# define PANGO_DEPRECATED_IN_1_6_FOR(f) PANGO_DEPRECATED_FOR(f)
423#else
424# define PANGO_DEPRECATED_IN_1_6 _PANGO_EXTERN
425# define PANGO_DEPRECATED_IN_1_6_FOR(f) _PANGO_EXTERN
426#endif
427
428#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_6
429# define PANGO_AVAILABLE_IN_1_6 PANGO_UNAVAILABLE(1, 6)
430#else
431# define PANGO_AVAILABLE_IN_1_6 _PANGO_EXTERN
432#endif
433
434#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_8
435# define PANGO_DEPRECATED_IN_1_8 PANGO_DEPRECATED
436# define PANGO_DEPRECATED_IN_1_8_FOR(f) PANGO_DEPRECATED_FOR(f)
437#else
438# define PANGO_DEPRECATED_IN_1_8 _PANGO_EXTERN
439# define PANGO_DEPRECATED_IN_1_8_FOR(f) _PANGO_EXTERN
440#endif
441
442#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_8
443# define PANGO_AVAILABLE_IN_1_8 PANGO_UNAVAILABLE(1, 8)
444#else
445# define PANGO_AVAILABLE_IN_1_8 _PANGO_EXTERN
446#endif
447
448#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_10
449# define PANGO_DEPRECATED_IN_1_10 PANGO_DEPRECATED
450# define PANGO_DEPRECATED_IN_1_10_FOR(f) PANGO_DEPRECATED_FOR(f)
451#else
452# define PANGO_DEPRECATED_IN_1_10 _PANGO_EXTERN
453# define PANGO_DEPRECATED_IN_1_10_FOR(f) _PANGO_EXTERN
454#endif
455
456#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_10
457# define PANGO_AVAILABLE_IN_1_10 PANGO_UNAVAILABLE(1, 10)
458#else
459# define PANGO_AVAILABLE_IN_1_10 _PANGO_EXTERN
460#endif
461
462#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_12
463# define PANGO_AVAILABLE_IN_1_12 PANGO_UNAVAILABLE(1, 12)
464#else
465# define PANGO_AVAILABLE_IN_1_12 _PANGO_EXTERN
466#endif
467
468#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_12
469# define PANGO_DEPRECATED_IN_1_12 PANGO_DEPRECATED
470# define PANGO_DEPRECATED_IN_1_12_FOR(f) PANGO_DEPRECATED_FOR(f)
471#else
472# define PANGO_DEPRECATED_IN_1_12 _PANGO_EXTERN
473# define PANGO_DEPRECATED_IN_1_12_FOR(f) _PANGO_EXTERN
474#endif
475
476#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_14
477# define PANGO_AVAILABLE_IN_1_14 PANGO_UNAVAILABLE(1, 14)
478#else
479# define PANGO_AVAILABLE_IN_1_14 _PANGO_EXTERN
480#endif
481
482#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_14
483# define PANGO_DEPRECATED_IN_1_14 PANGO_DEPRECATED
484# define PANGO_DEPRECATED_IN_1_14_FOR(f) PANGO_DEPRECATED_FOR(f)
485#else
486# define PANGO_DEPRECATED_IN_1_14 _PANGO_EXTERN
487# define PANGO_DEPRECATED_IN_1_14_FOR(f) _PANGO_EXTERN
488#endif
489
490#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_16
491# define PANGO_AVAILABLE_IN_1_16 PANGO_UNAVAILABLE(1, 16)
492#else
493# define PANGO_AVAILABLE_IN_1_16 _PANGO_EXTERN
494#endif
495
496#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_16
497# define PANGO_DEPRECATED_IN_1_16 PANGO_DEPRECATED
498# define PANGO_DEPRECATED_IN_1_16_FOR(f) PANGO_DEPRECATED_FOR(f)
499#else
500# define PANGO_DEPRECATED_IN_1_16 _PANGO_EXTERN
501# define PANGO_DEPRECATED_IN_1_16_FOR(f) _PANGO_EXTERN
502#endif
503
504#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_18
505# define PANGO_DEPRECATED_IN_1_18 PANGO_DEPRECATED
506# define PANGO_DEPRECATED_IN_1_18_FOR(f) PANGO_DEPRECATED_FOR(f)
507#else
508# define PANGO_DEPRECATED_IN_1_18 _PANGO_EXTERN
509# define PANGO_DEPRECATED_IN_1_18_FOR(f) _PANGO_EXTERN
510#endif
511
512#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_18
513# define PANGO_AVAILABLE_IN_1_18 PANGO_UNAVAILABLE(1, 18)
514#else
515# define PANGO_AVAILABLE_IN_1_18 _PANGO_EXTERN
516#endif
517
518#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_20
519# define PANGO_DEPRECATED_IN_1_20 PANGO_DEPRECATED
520# define PANGO_DEPRECATED_IN_1_20_FOR(f) PANGO_DEPRECATED_FOR(f)
521#else
522# define PANGO_DEPRECATED_IN_1_20 _PANGO_EXTERN
523# define PANGO_DEPRECATED_IN_1_20_FOR(f) _PANGO_EXTERN
524#endif
525
526#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_20
527# define PANGO_AVAILABLE_IN_1_20 PANGO_UNAVAILABLE(1, 20)
528#else
529# define PANGO_AVAILABLE_IN_1_20 _PANGO_EXTERN
530#endif
531
532#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_22
533# define PANGO_DEPRECATED_IN_1_22 PANGO_DEPRECATED
534# define PANGO_DEPRECATED_IN_1_22_FOR(f) PANGO_DEPRECATED_FOR(f)
535#else
536# define PANGO_DEPRECATED_IN_1_22 _PANGO_EXTERN
537# define PANGO_DEPRECATED_IN_1_22_FOR(f) _PANGO_EXTERN
538#endif
539
540#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_22
541# define PANGO_AVAILABLE_IN_1_22 PANGO_UNAVAILABLE(1, 22)
542#else
543# define PANGO_AVAILABLE_IN_1_22 _PANGO_EXTERN
544#endif
545
546#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_24
547# define PANGO_DEPRECATED_IN_1_24 PANGO_DEPRECATED
548# define PANGO_DEPRECATED_IN_1_24_FOR(f) PANGO_DEPRECATED_FOR(f)
549#else
550# define PANGO_DEPRECATED_IN_1_24 _PANGO_EXTERN
551# define PANGO_DEPRECATED_IN_1_24_FOR(f) _PANGO_EXTERN
552#endif
553
554#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_24
555# define PANGO_AVAILABLE_IN_1_24 PANGO_UNAVAILABLE(1, 24)
556#else
557# define PANGO_AVAILABLE_IN_1_24 _PANGO_EXTERN
558#endif
559
560#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_26
561# define PANGO_DEPRECATED_IN_1_26 PANGO_DEPRECATED
562# define PANGO_DEPRECATED_IN_1_26_FOR(f) PANGO_DEPRECATED_FOR(f)
563#else
564# define PANGO_DEPRECATED_IN_1_26 _PANGO_EXTERN
565# define PANGO_DEPRECATED_IN_1_26_FOR(f) _PANGO_EXTERN
566#endif
567
568#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_26
569# define PANGO_AVAILABLE_IN_1_26 PANGO_UNAVAILABLE(1, 26)
570#else
571# define PANGO_AVAILABLE_IN_1_26 _PANGO_EXTERN
572#endif
573
574#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_28
575# define PANGO_DEPRECATED_IN_1_28 PANGO_DEPRECATED
576# define PANGO_DEPRECATED_IN_1_28_FOR(f) PANGO_DEPRECATED_FOR(f)
577#else
578# define PANGO_DEPRECATED_IN_1_28 _PANGO_EXTERN
579# define PANGO_DEPRECATED_IN_1_28_FOR(f) _PANGO_EXTERN
580#endif
581
582#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_28
583# define PANGO_AVAILABLE_IN_1_28 PANGO_UNAVAILABLE(1, 28)
584#else
585# define PANGO_AVAILABLE_IN_1_28 _PANGO_EXTERN
586#endif
587
588#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_30
589# define PANGO_DEPRECATED_IN_1_30 PANGO_DEPRECATED
590# define PANGO_DEPRECATED_IN_1_30_FOR(f) PANGO_DEPRECATED_FOR(f)
591#else
592# define PANGO_DEPRECATED_IN_1_30 _PANGO_EXTERN
593# define PANGO_DEPRECATED_IN_1_30_FOR(f) _PANGO_EXTERN
594#endif
595
596#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_30
597# define PANGO_AVAILABLE_IN_1_30 PANGO_UNAVAILABLE(1, 30)
598#else
599# define PANGO_AVAILABLE_IN_1_30 _PANGO_EXTERN
600#endif
601
602#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_32
603# define PANGO_DEPRECATED_IN_1_32 PANGO_DEPRECATED
604# define PANGO_DEPRECATED_IN_1_32_FOR(f) PANGO_DEPRECATED_FOR(f)
605#else
606# define PANGO_DEPRECATED_IN_1_32 _PANGO_EXTERN
607# define PANGO_DEPRECATED_IN_1_32_FOR(f) _PANGO_EXTERN
608#endif
609
610#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_32
611# define PANGO_AVAILABLE_IN_1_32 PANGO_UNAVAILABLE(1, 32)
612#else
613# define PANGO_AVAILABLE_IN_1_32 _PANGO_EXTERN
614#endif
615
616#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_34
617# define PANGO_DEPRECATED_IN_1_34 PANGO_DEPRECATED
618# define PANGO_DEPRECATED_IN_1_34_FOR(f) PANGO_DEPRECATED_FOR(f)
619#else
620# define PANGO_DEPRECATED_IN_1_34 _PANGO_EXTERN
621# define PANGO_DEPRECATED_IN_1_34_FOR(f) _PANGO_EXTERN
622#endif
623
624#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_34
625# define PANGO_AVAILABLE_IN_1_34 PANGO_UNAVAILABLE(1, 34)
626#else
627# define PANGO_AVAILABLE_IN_1_34 _PANGO_EXTERN
628#endif
629
630#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_36
631# define PANGO_DEPRECATED_IN_1_36 PANGO_DEPRECATED
632# define PANGO_DEPRECATED_IN_1_36_FOR(f) PANGO_DEPRECATED_FOR(f)
633#else
634# define PANGO_DEPRECATED_IN_1_36 _PANGO_EXTERN
635# define PANGO_DEPRECATED_IN_1_36_FOR(f) _PANGO_EXTERN
636#endif
637
638#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_36
639# define PANGO_AVAILABLE_IN_1_36 PANGO_UNAVAILABLE(1, 36)
640#else
641# define PANGO_AVAILABLE_IN_1_36 _PANGO_EXTERN
642#endif
643
644#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_38
645# define PANGO_DEPRECATED_IN_1_38 PANGO_DEPRECATED
646# define PANGO_DEPRECATED_IN_1_38_FOR(f) PANGO_DEPRECATED_FOR(f)
647#else
648# define PANGO_DEPRECATED_IN_1_38 _PANGO_EXTERN
649# define PANGO_DEPRECATED_IN_1_38_FOR(f) _PANGO_EXTERN
650#endif
651
652#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_38
653# define PANGO_AVAILABLE_IN_1_38 PANGO_UNAVAILABLE(1, 38)
654#else
655# define PANGO_AVAILABLE_IN_1_38 _PANGO_EXTERN
656#endif
657
658#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_40
659# define PANGO_DEPRECATED_IN_1_40 PANGO_DEPRECATED
660# define PANGO_DEPRECATED_IN_1_40_FOR(f) PANGO_DEPRECATED_FOR(f)
661#else
662# define PANGO_DEPRECATED_IN_1_40 _PANGO_EXTERN
663# define PANGO_DEPRECATED_IN_1_40_FOR(f) _PANGO_EXTERN
664#endif
665
666#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_40
667# define PANGO_AVAILABLE_IN_1_40 PANGO_UNAVAILABLE(1, 40)
668#else
669# define PANGO_AVAILABLE_IN_1_40 _PANGO_EXTERN
670#endif
671
672#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_42
673# define PANGO_DEPRECATED_IN_1_42 PANGO_DEPRECATED
674# define PANGO_DEPRECATED_IN_1_42_FOR(f) PANGO_DEPRECATED_FOR(f)
675#else
676# define PANGO_DEPRECATED_IN_1_42 _PANGO_EXTERN
677# define PANGO_DEPRECATED_IN_1_42_FOR(f) _PANGO_EXTERN
678#endif
679
680#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_42
681# define PANGO_AVAILABLE_IN_1_42 PANGO_UNAVAILABLE(1, 42)
682#else
683# define PANGO_AVAILABLE_IN_1_42 _PANGO_EXTERN
684#endif
685
686#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_44
687# define PANGO_DEPRECATED_IN_1_44 PANGO_DEPRECATED
688# define PANGO_DEPRECATED_IN_1_44_FOR(f) PANGO_DEPRECATED_FOR(f)
689#else
690# define PANGO_DEPRECATED_IN_1_44 _PANGO_EXTERN
691# define PANGO_DEPRECATED_IN_1_44_FOR(f) _PANGO_EXTERN
692#endif
693
694#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_44
695# define PANGO_AVAILABLE_IN_1_44 PANGO_UNAVAILABLE(1, 44)
696#else
697# define PANGO_AVAILABLE_IN_1_44 _PANGO_EXTERN
698#endif
699
700#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_46
701# define PANGO_DEPRECATED_IN_1_46 PANGO_DEPRECATED
702# define PANGO_DEPRECATED_IN_1_46_FOR(f) PANGO_DEPRECATED_FOR(f)
703#else
704# define PANGO_DEPRECATED_IN_1_46 _PANGO_EXTERN
705# define PANGO_DEPRECATED_IN_1_46_FOR(f) _PANGO_EXTERN
706#endif
707
708#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_46
709# define PANGO_AVAILABLE_IN_1_46 PANGO_UNAVAILABLE(1, 46)
710#else
711# define PANGO_AVAILABLE_IN_1_46 _PANGO_EXTERN
712#endif
713
714#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_48
715# define PANGO_DEPRECATED_IN_1_48 PANGO_DEPRECATED
716# define PANGO_DEPRECATED_IN_1_48_FOR(f) PANGO_DEPRECATED_FOR(f)
717#else
718# define PANGO_DEPRECATED_IN_1_48 _PANGO_EXTERN
719# define PANGO_DEPRECATED_IN_1_48_FOR(f) _PANGO_EXTERN
720#endif
721
722#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_48
723# define PANGO_AVAILABLE_IN_1_48 PANGO_UNAVAILABLE(1, 48)
724#else
725# define PANGO_AVAILABLE_IN_1_48 _PANGO_EXTERN
726#endif
727
728#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_50
729# define PANGO_DEPRECATED_IN_1_50 PANGO_DEPRECATED
730# define PANGO_DEPRECATED_IN_1_50_FOR(f) PANGO_DEPRECATED_FOR(f)
731#else
732# define PANGO_DEPRECATED_IN_1_50 _PANGO_EXTERN
733# define PANGO_DEPRECATED_IN_1_50_FOR(f) _PANGO_EXTERN
734#endif
735
736#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_50
737# define PANGO_AVAILABLE_IN_1_50 PANGO_UNAVAILABLE(1, 50)
738#else
739# define PANGO_AVAILABLE_IN_1_50 _PANGO_EXTERN
740#endif
741
742#if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_52
743# define PANGO_DEPRECATED_IN_1_52 PANGO_DEPRECATED
744# define PANGO_DEPRECATED_IN_1_52_FOR(f) PANGO_DEPRECATED_FOR(f)
745#else
746# define PANGO_DEPRECATED_IN_1_52 _PANGO_EXTERN
747# define PANGO_DEPRECATED_IN_1_52_FOR(f) _PANGO_EXTERN
748#endif
749
750#if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_52
751# define PANGO_AVAILABLE_IN_1_52 PANGO_UNAVAILABLE(1, 52)
752#else
753# define PANGO_AVAILABLE_IN_1_52 _PANGO_EXTERN
754#endif
755
756#endif /* __PANGO_VERSION_H__ */
757

source code of include/pango-1.0/pango/pango-version-macros.h