Imported Upstream version 2.61.0
[platform/upstream/glib.git] / glib / gversionmacros.h
1 /* GLIB - Library of useful routines for C programming
2  * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16  */
17
18 /*
19  * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
20  * file for a list of people on the GLib Team.  See the ChangeLog
21  * files for a list of changes.  These files are distributed with
22  * GLib at ftp://ftp.gtk.org/pub/gtk/.
23  */
24
25 #ifndef __G_VERSION_MACROS_H__
26 #define __G_VERSION_MACROS_H__
27
28 #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
29 #error "Only <glib.h> can be included directly."
30 #endif
31
32 /* Version boundaries checks */
33
34 #define G_ENCODE_VERSION(major,minor)   ((major) << 16 | (minor) << 8)
35
36 /* XXX: Every new stable minor release bump should add a macro here */
37
38 /**
39  * GLIB_VERSION_2_26:
40  *
41  * A macro that evaluates to the 2.26 version of GLib, in a format
42  * that can be used by the C pre-processor.
43  *
44  * Since: 2.32
45  */
46 #define GLIB_VERSION_2_26       (G_ENCODE_VERSION (2, 26))
47
48 /**
49  * GLIB_VERSION_2_28:
50  *
51  * A macro that evaluates to the 2.28 version of GLib, in a format
52  * that can be used by the C pre-processor.
53  *
54  * Since: 2.32
55  */
56 #define GLIB_VERSION_2_28       (G_ENCODE_VERSION (2, 28))
57
58 /**
59  * GLIB_VERSION_2_30:
60  *
61  * A macro that evaluates to the 2.30 version of GLib, in a format
62  * that can be used by the C pre-processor.
63  *
64  * Since: 2.32
65  */
66 #define GLIB_VERSION_2_30       (G_ENCODE_VERSION (2, 30))
67
68 /**
69  * GLIB_VERSION_2_32:
70  *
71  * A macro that evaluates to the 2.32 version of GLib, in a format
72  * that can be used by the C pre-processor.
73  *
74  * Since: 2.32
75  */
76 #define GLIB_VERSION_2_32       (G_ENCODE_VERSION (2, 32))
77
78 /**
79  * GLIB_VERSION_2_34:
80  *
81  * A macro that evaluates to the 2.34 version of GLib, in a format
82  * that can be used by the C pre-processor.
83  *
84  * Since: 2.34
85  */
86 #define GLIB_VERSION_2_34       (G_ENCODE_VERSION (2, 34))
87
88 /**
89  * GLIB_VERSION_2_36:
90  *
91  * A macro that evaluates to the 2.36 version of GLib, in a format
92  * that can be used by the C pre-processor.
93  *
94  * Since: 2.36
95  */
96 #define GLIB_VERSION_2_36       (G_ENCODE_VERSION (2, 36))
97
98 /**
99  * GLIB_VERSION_2_38:
100  *
101  * A macro that evaluates to the 2.38 version of GLib, in a format
102  * that can be used by the C pre-processor.
103  *
104  * Since: 2.38
105  */
106 #define GLIB_VERSION_2_38       (G_ENCODE_VERSION (2, 38))
107
108 /**
109  * GLIB_VERSION_2_40:
110  *
111  * A macro that evaluates to the 2.40 version of GLib, in a format
112  * that can be used by the C pre-processor.
113  *
114  * Since: 2.40
115  */
116 #define GLIB_VERSION_2_40       (G_ENCODE_VERSION (2, 40))
117
118 /**
119  * GLIB_VERSION_2_42:
120  *
121  * A macro that evaluates to the 2.42 version of GLib, in a format
122  * that can be used by the C pre-processor.
123  *
124  * Since: 2.42
125  */
126 #define GLIB_VERSION_2_42       (G_ENCODE_VERSION (2, 42))
127
128 /**
129  * GLIB_VERSION_2_44:
130  *
131  * A macro that evaluates to the 2.44 version of GLib, in a format
132  * that can be used by the C pre-processor.
133  *
134  * Since: 2.44
135  */
136 #define GLIB_VERSION_2_44       (G_ENCODE_VERSION (2, 44))
137
138 /**
139  * GLIB_VERSION_2_46:
140  *
141  * A macro that evaluates to the 2.46 version of GLib, in a format
142  * that can be used by the C pre-processor.
143  *
144  * Since: 2.46
145  */
146 #define GLIB_VERSION_2_46       (G_ENCODE_VERSION (2, 46))
147
148 /**
149  * GLIB_VERSION_2_48:
150  *
151  * A macro that evaluates to the 2.48 version of GLib, in a format
152  * that can be used by the C pre-processor.
153  *
154  * Since: 2.48
155  */
156 #define GLIB_VERSION_2_48       (G_ENCODE_VERSION (2, 48))
157
158 /**
159  * GLIB_VERSION_2_50:
160  *
161  * A macro that evaluates to the 2.50 version of GLib, in a format
162  * that can be used by the C pre-processor.
163  *
164  * Since: 2.50
165  */
166 #define GLIB_VERSION_2_50       (G_ENCODE_VERSION (2, 50))
167
168 /**
169  * GLIB_VERSION_2_52:
170  *
171  * A macro that evaluates to the 2.52 version of GLib, in a format
172  * that can be used by the C pre-processor.
173  *
174  * Since: 2.52
175  */
176 #define GLIB_VERSION_2_52       (G_ENCODE_VERSION (2, 52))
177
178 /**
179  * GLIB_VERSION_2_54:
180  *
181  * A macro that evaluates to the 2.54 version of GLib, in a format
182  * that can be used by the C pre-processor.
183  *
184  * Since: 2.54
185  */
186 #define GLIB_VERSION_2_54       (G_ENCODE_VERSION (2, 54))
187
188 /**
189  * GLIB_VERSION_2_56:
190  *
191  * A macro that evaluates to the 2.56 version of GLib, in a format
192  * that can be used by the C pre-processor.
193  *
194  * Since: 2.56
195  */
196 #define GLIB_VERSION_2_56       (G_ENCODE_VERSION (2, 56))
197
198 /**
199  * GLIB_VERSION_2_58:
200  *
201  * A macro that evaluates to the 2.58 version of GLib, in a format
202  * that can be used by the C pre-processor.
203  *
204  * Since: 2.58
205  */
206 #define GLIB_VERSION_2_58       (G_ENCODE_VERSION (2, 58))
207
208 /**
209  * GLIB_VERSION_2_60:
210  *
211  * A macro that evaluates to the 2.60 version of GLib, in a format
212  * that can be used by the C pre-processor.
213  *
214  * Since: 2.60
215  */
216 #define GLIB_VERSION_2_60       (G_ENCODE_VERSION (2, 60))
217
218 /**
219  * GLIB_VERSION_2_62:
220  *
221  * A macro that evaluates to the 2.62 version of GLib, in a format
222  * that can be used by the C pre-processor.
223  *
224  * Since: 2.62
225  */
226 #define GLIB_VERSION_2_62       (G_ENCODE_VERSION (2, 62))
227
228 /* evaluates to the current stable version; for development cycles,
229  * this means the next stable target
230  */
231 #if (GLIB_MINOR_VERSION % 2)
232 #define GLIB_VERSION_CUR_STABLE         (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION + 1))
233 #else
234 #define GLIB_VERSION_CUR_STABLE         (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION))
235 #endif
236
237 /* evaluates to the previous stable version */
238 #if (GLIB_MINOR_VERSION % 2)
239 #define GLIB_VERSION_PREV_STABLE        (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION - 1))
240 #else
241 #define GLIB_VERSION_PREV_STABLE        (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION - 2))
242 #endif
243
244 /**
245  * GLIB_VERSION_MIN_REQUIRED:
246  *
247  * A macro that should be defined by the user prior to including
248  * the glib.h header.
249  * The definition should be one of the predefined GLib version
250  * macros: %GLIB_VERSION_2_26, %GLIB_VERSION_2_28,...
251  *
252  * This macro defines the earliest version of GLib that the package is
253  * required to be able to compile against.
254  *
255  * If the compiler is configured to warn about the use of deprecated
256  * functions, then using functions that were deprecated in version
257  * %GLIB_VERSION_MIN_REQUIRED or earlier will cause warnings (but
258  * using functions deprecated in later releases will not).
259  *
260  * Since: 2.32
261  */
262 /* If the package sets GLIB_VERSION_MIN_REQUIRED to some future
263  * GLIB_VERSION_X_Y value that we don't know about, it will compare as
264  * 0 in preprocessor tests.
265  */
266 #ifndef GLIB_VERSION_MIN_REQUIRED
267 # define GLIB_VERSION_MIN_REQUIRED      (GLIB_VERSION_CUR_STABLE)
268 #elif GLIB_VERSION_MIN_REQUIRED == 0
269 # undef  GLIB_VERSION_MIN_REQUIRED
270 # define GLIB_VERSION_MIN_REQUIRED      (GLIB_VERSION_CUR_STABLE + 2)
271 #endif
272
273 /**
274  * GLIB_VERSION_MAX_ALLOWED:
275  *
276  * A macro that should be defined by the user prior to including
277  * the glib.h header.
278  * The definition should be one of the predefined GLib version
279  * macros: %GLIB_VERSION_2_26, %GLIB_VERSION_2_28,...
280  *
281  * This macro defines the latest version of the GLib API that the
282  * package is allowed to make use of.
283  *
284  * If the compiler is configured to warn about the use of deprecated
285  * functions, then using functions added after version
286  * %GLIB_VERSION_MAX_ALLOWED will cause warnings.
287  *
288  * Unless you are using GLIB_CHECK_VERSION() or the like to compile
289  * different code depending on the GLib version, then this should be
290  * set to the same value as %GLIB_VERSION_MIN_REQUIRED.
291  *
292  * Since: 2.32
293  */
294 #if !defined (GLIB_VERSION_MAX_ALLOWED) || (GLIB_VERSION_MAX_ALLOWED == 0)
295 # undef GLIB_VERSION_MAX_ALLOWED
296 # define GLIB_VERSION_MAX_ALLOWED      (GLIB_VERSION_CUR_STABLE)
297 #endif
298
299 /* sanity checks */
300 #if GLIB_VERSION_MIN_REQUIRED > GLIB_VERSION_CUR_STABLE
301 #error "GLIB_VERSION_MIN_REQUIRED must be <= GLIB_VERSION_CUR_STABLE"
302 #endif
303 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_MIN_REQUIRED
304 #error "GLIB_VERSION_MAX_ALLOWED must be >= GLIB_VERSION_MIN_REQUIRED"
305 #endif
306 #if GLIB_VERSION_MIN_REQUIRED < GLIB_VERSION_2_26
307 #error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"
308 #endif
309
310 /* These macros are used to mark deprecated functions in GLib headers,
311  * and thus have to be exposed in installed headers. But please
312  * do *not* use them in other projects. Instead, use G_DEPRECATED
313  * or define your own wrappers around it.
314  */
315 #define GLIB_AVAILABLE_IN_ALL                   _GLIB_EXTERN
316
317 /* XXX: Every new stable minor release should add a set of macros here */
318
319 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_26
320 # define GLIB_DEPRECATED_IN_2_26                GLIB_DEPRECATED
321 # define GLIB_DEPRECATED_IN_2_26_FOR(f)         GLIB_DEPRECATED_FOR(f)
322 #else
323 # define GLIB_DEPRECATED_IN_2_26                _GLIB_EXTERN
324 # define GLIB_DEPRECATED_IN_2_26_FOR(f)         _GLIB_EXTERN
325 #endif
326
327 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_26
328 # define GLIB_AVAILABLE_IN_2_26                 GLIB_UNAVAILABLE(2, 26)
329 #else
330 # define GLIB_AVAILABLE_IN_2_26                 _GLIB_EXTERN
331 #endif
332
333 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_28
334 # define GLIB_DEPRECATED_IN_2_28                GLIB_DEPRECATED
335 # define GLIB_DEPRECATED_IN_2_28_FOR(f)         GLIB_DEPRECATED_FOR(f)
336 #else
337 # define GLIB_DEPRECATED_IN_2_28                _GLIB_EXTERN
338 # define GLIB_DEPRECATED_IN_2_28_FOR(f)         _GLIB_EXTERN
339 #endif
340
341 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_28
342 # define GLIB_AVAILABLE_IN_2_28                 GLIB_UNAVAILABLE(2, 28)
343 #else
344 # define GLIB_AVAILABLE_IN_2_28                 _GLIB_EXTERN
345 #endif
346
347 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_30
348 # define GLIB_DEPRECATED_IN_2_30                GLIB_DEPRECATED
349 # define GLIB_DEPRECATED_IN_2_30_FOR(f)         GLIB_DEPRECATED_FOR(f)
350 #else
351 # define GLIB_DEPRECATED_IN_2_30                _GLIB_EXTERN
352 # define GLIB_DEPRECATED_IN_2_30_FOR(f)         _GLIB_EXTERN
353 #endif
354
355 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_30
356 # define GLIB_AVAILABLE_IN_2_30                 GLIB_UNAVAILABLE(2, 30)
357 #else
358 # define GLIB_AVAILABLE_IN_2_30                 _GLIB_EXTERN
359 #endif
360
361 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_32
362 # define GLIB_DEPRECATED_IN_2_32                GLIB_DEPRECATED
363 # define GLIB_DEPRECATED_IN_2_32_FOR(f)         GLIB_DEPRECATED_FOR(f)
364 #else
365 # define GLIB_DEPRECATED_IN_2_32                _GLIB_EXTERN
366 # define GLIB_DEPRECATED_IN_2_32_FOR(f)         _GLIB_EXTERN
367 #endif
368
369 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_32
370 # define GLIB_AVAILABLE_IN_2_32                 GLIB_UNAVAILABLE(2, 32)
371 #else
372 # define GLIB_AVAILABLE_IN_2_32                 _GLIB_EXTERN
373 #endif
374
375 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_34
376 # define GLIB_DEPRECATED_IN_2_34                GLIB_DEPRECATED
377 # define GLIB_DEPRECATED_IN_2_34_FOR(f)         GLIB_DEPRECATED_FOR(f)
378 #else
379 # define GLIB_DEPRECATED_IN_2_34                _GLIB_EXTERN
380 # define GLIB_DEPRECATED_IN_2_34_FOR(f)         _GLIB_EXTERN
381 #endif
382
383 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_34
384 # define GLIB_AVAILABLE_IN_2_34                 GLIB_UNAVAILABLE(2, 34)
385 #else
386 # define GLIB_AVAILABLE_IN_2_34                 _GLIB_EXTERN
387 #endif
388
389 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_36
390 # define GLIB_DEPRECATED_IN_2_36                GLIB_DEPRECATED
391 # define GLIB_DEPRECATED_IN_2_36_FOR(f)         GLIB_DEPRECATED_FOR(f)
392 #else
393 # define GLIB_DEPRECATED_IN_2_36                _GLIB_EXTERN
394 # define GLIB_DEPRECATED_IN_2_36_FOR(f)         _GLIB_EXTERN
395 #endif
396
397 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_36
398 # define GLIB_AVAILABLE_IN_2_36                 GLIB_UNAVAILABLE(2, 36)
399 #else
400 # define GLIB_AVAILABLE_IN_2_36                 _GLIB_EXTERN
401 #endif
402
403 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_38
404 # define GLIB_DEPRECATED_IN_2_38                GLIB_DEPRECATED
405 # define GLIB_DEPRECATED_IN_2_38_FOR(f)         GLIB_DEPRECATED_FOR(f)
406 #else
407 # define GLIB_DEPRECATED_IN_2_38                _GLIB_EXTERN
408 # define GLIB_DEPRECATED_IN_2_38_FOR(f)         _GLIB_EXTERN
409 #endif
410
411 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
412 # define GLIB_AVAILABLE_IN_2_38                 GLIB_UNAVAILABLE(2, 38)
413 #else
414 # define GLIB_AVAILABLE_IN_2_38                 _GLIB_EXTERN
415 #endif
416
417 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_40
418 # define GLIB_DEPRECATED_IN_2_40                GLIB_DEPRECATED
419 # define GLIB_DEPRECATED_IN_2_40_FOR(f)         GLIB_DEPRECATED_FOR(f)
420 #else
421 # define GLIB_DEPRECATED_IN_2_40                _GLIB_EXTERN
422 # define GLIB_DEPRECATED_IN_2_40_FOR(f)         _GLIB_EXTERN
423 #endif
424
425 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_40
426 # define GLIB_AVAILABLE_IN_2_40                 GLIB_UNAVAILABLE(2, 40)
427 #else
428 # define GLIB_AVAILABLE_IN_2_40                 _GLIB_EXTERN
429 #endif
430
431 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_42
432 # define GLIB_DEPRECATED_IN_2_42                GLIB_DEPRECATED
433 # define GLIB_DEPRECATED_IN_2_42_FOR(f)         GLIB_DEPRECATED_FOR(f)
434 #else
435 # define GLIB_DEPRECATED_IN_2_42                _GLIB_EXTERN
436 # define GLIB_DEPRECATED_IN_2_42_FOR(f)         _GLIB_EXTERN
437 #endif
438
439 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_42
440 # define GLIB_AVAILABLE_IN_2_42                 GLIB_UNAVAILABLE(2, 42)
441 #else
442 # define GLIB_AVAILABLE_IN_2_42                 _GLIB_EXTERN
443 #endif
444
445 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_44
446 # define GLIB_DEPRECATED_IN_2_44                GLIB_DEPRECATED
447 # define GLIB_DEPRECATED_IN_2_44_FOR(f)         GLIB_DEPRECATED_FOR(f)
448 #else
449 # define GLIB_DEPRECATED_IN_2_44                _GLIB_EXTERN
450 # define GLIB_DEPRECATED_IN_2_44_FOR(f)         _GLIB_EXTERN
451 #endif
452
453 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_44
454 # define GLIB_AVAILABLE_IN_2_44                 GLIB_UNAVAILABLE(2, 44)
455 #else
456 # define GLIB_AVAILABLE_IN_2_44                 _GLIB_EXTERN
457 #endif
458
459 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_46
460 # define GLIB_DEPRECATED_IN_2_46                GLIB_DEPRECATED
461 # define GLIB_DEPRECATED_IN_2_46_FOR(f)         GLIB_DEPRECATED_FOR(f)
462 #else
463 # define GLIB_DEPRECATED_IN_2_46                _GLIB_EXTERN
464 # define GLIB_DEPRECATED_IN_2_46_FOR(f)         _GLIB_EXTERN
465 #endif
466
467 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_46
468 # define GLIB_AVAILABLE_IN_2_46                 GLIB_UNAVAILABLE(2, 46)
469 #else
470 # define GLIB_AVAILABLE_IN_2_46                 _GLIB_EXTERN
471 #endif
472
473 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_48
474 # define GLIB_DEPRECATED_IN_2_48                GLIB_DEPRECATED
475 # define GLIB_DEPRECATED_IN_2_48_FOR(f)         GLIB_DEPRECATED_FOR(f)
476 #else
477 # define GLIB_DEPRECATED_IN_2_48                _GLIB_EXTERN
478 # define GLIB_DEPRECATED_IN_2_48_FOR(f)         _GLIB_EXTERN
479 #endif
480
481 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_48
482 # define GLIB_AVAILABLE_IN_2_48                 GLIB_UNAVAILABLE(2, 48)
483 #else
484 # define GLIB_AVAILABLE_IN_2_48                 _GLIB_EXTERN
485 #endif
486
487 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_50
488 # define GLIB_DEPRECATED_IN_2_50                GLIB_DEPRECATED
489 # define GLIB_DEPRECATED_IN_2_50_FOR(f)         GLIB_DEPRECATED_FOR(f)
490 #else
491 # define GLIB_DEPRECATED_IN_2_50                _GLIB_EXTERN
492 # define GLIB_DEPRECATED_IN_2_50_FOR(f)         _GLIB_EXTERN
493 #endif
494
495 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_50
496 # define GLIB_AVAILABLE_IN_2_50                 GLIB_UNAVAILABLE(2, 50)
497 #else
498 # define GLIB_AVAILABLE_IN_2_50                 _GLIB_EXTERN
499 #endif
500
501 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_52
502 # define GLIB_DEPRECATED_IN_2_52                GLIB_DEPRECATED
503 # define GLIB_DEPRECATED_IN_2_52_FOR(f)         GLIB_DEPRECATED_FOR(f)
504 #else
505 # define GLIB_DEPRECATED_IN_2_52                _GLIB_EXTERN
506 # define GLIB_DEPRECATED_IN_2_52_FOR(f)         _GLIB_EXTERN
507 #endif
508
509 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_52
510 # define GLIB_AVAILABLE_IN_2_52                 GLIB_UNAVAILABLE(2, 52)
511 #else
512 # define GLIB_AVAILABLE_IN_2_52                 _GLIB_EXTERN
513 #endif
514
515 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_54
516 # define GLIB_DEPRECATED_IN_2_54                GLIB_DEPRECATED
517 # define GLIB_DEPRECATED_IN_2_54_FOR(f)         GLIB_DEPRECATED_FOR(f)
518 #else
519 # define GLIB_DEPRECATED_IN_2_54                _GLIB_EXTERN
520 # define GLIB_DEPRECATED_IN_2_54_FOR(f)         _GLIB_EXTERN
521 #endif
522
523 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_54
524 # define GLIB_AVAILABLE_IN_2_54                 GLIB_UNAVAILABLE(2, 54)
525 #else
526 # define GLIB_AVAILABLE_IN_2_54                 _GLIB_EXTERN
527 #endif
528
529 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_56
530 # define GLIB_DEPRECATED_IN_2_56                GLIB_DEPRECATED
531 # define GLIB_DEPRECATED_IN_2_56_FOR(f)         GLIB_DEPRECATED_FOR(f)
532 #else
533 # define GLIB_DEPRECATED_IN_2_56                _GLIB_EXTERN
534 # define GLIB_DEPRECATED_IN_2_56_FOR(f)         _GLIB_EXTERN
535 #endif
536
537 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_56
538 # define GLIB_AVAILABLE_IN_2_56                 GLIB_UNAVAILABLE(2, 56)
539 #else
540 # define GLIB_AVAILABLE_IN_2_56                 _GLIB_EXTERN
541 #endif
542
543 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_58
544 # define GLIB_DEPRECATED_IN_2_58                GLIB_DEPRECATED
545 # define GLIB_DEPRECATED_IN_2_58_FOR(f)         GLIB_DEPRECATED_FOR(f)
546 #else
547 # define GLIB_DEPRECATED_IN_2_58                _GLIB_EXTERN
548 # define GLIB_DEPRECATED_IN_2_58_FOR(f)         _GLIB_EXTERN
549 #endif
550
551 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_58
552 # define GLIB_AVAILABLE_IN_2_58                 GLIB_UNAVAILABLE(2, 58)
553 #else
554 # define GLIB_AVAILABLE_IN_2_58                 _GLIB_EXTERN
555 #endif
556
557 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_60
558 # define GLIB_DEPRECATED_IN_2_60                GLIB_DEPRECATED
559 # define GLIB_DEPRECATED_IN_2_60_FOR(f)         GLIB_DEPRECATED_FOR(f)
560 #else
561 # define GLIB_DEPRECATED_IN_2_60                _GLIB_EXTERN
562 # define GLIB_DEPRECATED_IN_2_60_FOR(f)         _GLIB_EXTERN
563 #endif
564
565 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_60
566 # define GLIB_AVAILABLE_IN_2_60                 GLIB_UNAVAILABLE(2, 60)
567 #else
568 # define GLIB_AVAILABLE_IN_2_60                 _GLIB_EXTERN
569 #endif
570
571 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_62
572 # define GLIB_DEPRECATED_IN_2_62                GLIB_DEPRECATED
573 # define GLIB_DEPRECATED_IN_2_62_FOR(f)         GLIB_DEPRECATED_FOR(f)
574 #else
575 # define GLIB_DEPRECATED_IN_2_62                _GLIB_EXTERN
576 # define GLIB_DEPRECATED_IN_2_62_FOR(f)         _GLIB_EXTERN
577 #endif
578
579 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_62
580 # define GLIB_AVAILABLE_IN_2_62                 GLIB_UNAVAILABLE(2, 62)
581 #else
582 # define GLIB_AVAILABLE_IN_2_62                 _GLIB_EXTERN
583 #endif
584
585 #endif /*  __G_VERSION_MACROS_H__ */