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/**
229 * GLIB_VERSION_2_64:
230 *
231 * A macro that evaluates to the 2.64 version of GLib, in a format
232 * that can be used by the C pre-processor.
233 *
234 * Since: 2.64
235 */
236#define GLIB_VERSION_2_64 (G_ENCODE_VERSION (2, 64))
237
238/**
239 * GLIB_VERSION_2_66:
240 *
241 * A macro that evaluates to the 2.66 version of GLib, in a format
242 * that can be used by the C pre-processor.
243 *
244 * Since: 2.66
245 */
246#define GLIB_VERSION_2_66 (G_ENCODE_VERSION (2, 66))
247
248/**
249 * GLIB_VERSION_2_68:
250 *
251 * A macro that evaluates to the 2.68 version of GLib, in a format
252 * that can be used by the C pre-processor.
253 *
254 * Since: 2.68
255 */
256#define GLIB_VERSION_2_68 (G_ENCODE_VERSION (2, 68))
257
258/**
259 * GLIB_VERSION_CUR_STABLE:
260 *
261 * A macro that evaluates to the current stable version of GLib, in a format
262 * that can be used by the C pre-processor.
263 *
264 * During an unstable development cycle, this evaluates to the next stable
265 * (unreleased) version which will be the result of the development cycle.
266 *
267 * Since: 2.32
268 */
269#if (GLIB_MINOR_VERSION % 2)
270#define GLIB_VERSION_CUR_STABLE (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION + 1))
271#else
272#define GLIB_VERSION_CUR_STABLE (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION))
273#endif
274
275/**
276 * GLIB_VERSION_PREV_STABLE:
277 *
278 * A macro that evaluates to the previous stable version of GLib, in a format
279 * that can be used by the C pre-processor.
280 *
281 * During an unstable development cycle, this evaluates to the most recent
282 * released stable release, which preceded this development cycle.
283 *
284 * Since: 2.32
285 */
286#if (GLIB_MINOR_VERSION % 2)
287#define GLIB_VERSION_PREV_STABLE (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION - 1))
288#else
289#define GLIB_VERSION_PREV_STABLE (G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION - 2))
290#endif
291
292/**
293 * GLIB_VERSION_MIN_REQUIRED:
294 *
295 * A macro that should be defined by the user prior to including
296 * the glib.h header.
297 * The definition should be one of the predefined GLib version
298 * macros: %GLIB_VERSION_2_26, %GLIB_VERSION_2_28,...
299 *
300 * This macro defines the earliest version of GLib that the package is
301 * required to be able to compile against.
302 *
303 * If the compiler is configured to warn about the use of deprecated
304 * functions, then using functions that were deprecated in version
305 * %GLIB_VERSION_MIN_REQUIRED or earlier will cause warnings (but
306 * using functions deprecated in later releases will not).
307 *
308 * Since: 2.32
309 */
310/* If the package sets GLIB_VERSION_MIN_REQUIRED to some future
311 * GLIB_VERSION_X_Y value that we don't know about, it will compare as
312 * 0 in preprocessor tests.
313 */
314#ifndef GLIB_VERSION_MIN_REQUIRED
315# define GLIB_VERSION_MIN_REQUIRED (GLIB_VERSION_CUR_STABLE)
316#elif GLIB_VERSION_MIN_REQUIRED == 0
317# undef GLIB_VERSION_MIN_REQUIRED
318# define GLIB_VERSION_MIN_REQUIRED (GLIB_VERSION_CUR_STABLE + 2)
319#endif
320
321/**
322 * GLIB_VERSION_MAX_ALLOWED:
323 *
324 * A macro that should be defined by the user prior to including
325 * the glib.h header.
326 * The definition should be one of the predefined GLib version
327 * macros: %GLIB_VERSION_2_26, %GLIB_VERSION_2_28,...
328 *
329 * This macro defines the latest version of the GLib API that the
330 * package is allowed to make use of.
331 *
332 * If the compiler is configured to warn about the use of deprecated
333 * functions, then using functions added after version
334 * %GLIB_VERSION_MAX_ALLOWED will cause warnings.
335 *
336 * Unless you are using GLIB_CHECK_VERSION() or the like to compile
337 * different code depending on the GLib version, then this should be
338 * set to the same value as %GLIB_VERSION_MIN_REQUIRED.
339 *
340 * Since: 2.32
341 */
342#if !defined (GLIB_VERSION_MAX_ALLOWED) || (GLIB_VERSION_MAX_ALLOWED == 0)
343# undef GLIB_VERSION_MAX_ALLOWED
344# define GLIB_VERSION_MAX_ALLOWED (GLIB_VERSION_CUR_STABLE)
345#endif
346
347/* sanity checks */
348#if GLIB_VERSION_MIN_REQUIRED > GLIB_VERSION_CUR_STABLE
349#error "GLIB_VERSION_MIN_REQUIRED must be <= GLIB_VERSION_CUR_STABLE"
350#endif
351#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_MIN_REQUIRED
352#error "GLIB_VERSION_MAX_ALLOWED must be >= GLIB_VERSION_MIN_REQUIRED"
353#endif
354#if GLIB_VERSION_MIN_REQUIRED < GLIB_VERSION_2_26
355#error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"
356#endif
357
358/* These macros are used to mark deprecated functions in GLib headers,
359 * and thus have to be exposed in installed headers. But please
360 * do *not* use them in other projects. Instead, use G_DEPRECATED
361 * or define your own wrappers around it.
362 */
363#define GLIB_AVAILABLE_IN_ALL _GLIB_EXTERN
364
365/* XXX: Every new stable minor release should add a set of macros here */
366
367#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_26
368# define GLIB_DEPRECATED_IN_2_26 GLIB_DEPRECATED
369# define GLIB_DEPRECATED_IN_2_26_FOR(f) GLIB_DEPRECATED_FOR(f)
370# define GLIB_DEPRECATED_MACRO_IN_2_26 GLIB_DEPRECATED_MACRO
371# define GLIB_DEPRECATED_MACRO_IN_2_26_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
372# define GLIB_DEPRECATED_ENUMERATOR_IN_2_26 GLIB_DEPRECATED_ENUMERATOR
373# define GLIB_DEPRECATED_ENUMERATOR_IN_2_26_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
374# define GLIB_DEPRECATED_TYPE_IN_2_26 GLIB_DEPRECATED_TYPE
375# define GLIB_DEPRECATED_TYPE_IN_2_26_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
376#else
377# define GLIB_DEPRECATED_IN_2_26 _GLIB_EXTERN
378# define GLIB_DEPRECATED_IN_2_26_FOR(f) _GLIB_EXTERN
379# define GLIB_DEPRECATED_MACRO_IN_2_26
380# define GLIB_DEPRECATED_MACRO_IN_2_26_FOR(f)
381# define GLIB_DEPRECATED_ENUMERATOR_IN_2_26
382# define GLIB_DEPRECATED_ENUMERATOR_IN_2_26_FOR(f)
383# define GLIB_DEPRECATED_TYPE_IN_2_26
384# define GLIB_DEPRECATED_TYPE_IN_2_26_FOR(f)
385#endif
386
387#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_26
388# define GLIB_AVAILABLE_IN_2_26 GLIB_UNAVAILABLE(2, 26)
389# define GLIB_AVAILABLE_MACRO_IN_2_26 GLIB_UNAVAILABLE_MACRO(2, 26)
390# define GLIB_AVAILABLE_ENUMERATOR_IN_2_26 GLIB_UNAVAILABLE_ENUMERATOR(2, 26)
391# define GLIB_AVAILABLE_TYPE_IN_2_26 GLIB_UNAVAILABLE_TYPE(2, 26)
392#else
393# define GLIB_AVAILABLE_IN_2_26 _GLIB_EXTERN
394# define GLIB_AVAILABLE_MACRO_IN_2_26
395# define GLIB_AVAILABLE_ENUMERATOR_IN_2_26
396# define GLIB_AVAILABLE_TYPE_IN_2_26
397#endif
398
399#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_28
400# define GLIB_DEPRECATED_IN_2_28 GLIB_DEPRECATED
401# define GLIB_DEPRECATED_IN_2_28_FOR(f) GLIB_DEPRECATED_FOR(f)
402# define GLIB_DEPRECATED_MACRO_IN_2_28 GLIB_DEPRECATED_MACRO
403# define GLIB_DEPRECATED_MACRO_IN_2_28_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
404# define GLIB_DEPRECATED_ENUMERATOR_IN_2_28 GLIB_DEPRECATED_ENUMERATOR
405# define GLIB_DEPRECATED_ENUMERATOR_IN_2_28_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
406# define GLIB_DEPRECATED_TYPE_IN_2_28 GLIB_DEPRECATED_TYPE
407# define GLIB_DEPRECATED_TYPE_IN_2_28_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
408#else
409# define GLIB_DEPRECATED_IN_2_28 _GLIB_EXTERN
410# define GLIB_DEPRECATED_IN_2_28_FOR(f) _GLIB_EXTERN
411# define GLIB_DEPRECATED_MACRO_IN_2_28
412# define GLIB_DEPRECATED_MACRO_IN_2_28_FOR(f)
413# define GLIB_DEPRECATED_ENUMERATOR_IN_2_28
414# define GLIB_DEPRECATED_ENUMERATOR_IN_2_28_FOR(f)
415# define GLIB_DEPRECATED_TYPE_IN_2_28
416# define GLIB_DEPRECATED_TYPE_IN_2_28_FOR(f)
417#endif
418
419#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_28
420# define GLIB_AVAILABLE_IN_2_28 GLIB_UNAVAILABLE(2, 28)
421# define GLIB_AVAILABLE_MACRO_IN_2_28 GLIB_UNAVAILABLE_MACRO(2, 28)
422# define GLIB_AVAILABLE_ENUMERATOR_IN_2_28 GLIB_UNAVAILABLE_ENUMERATOR(2, 28)
423# define GLIB_AVAILABLE_TYPE_IN_2_28 GLIB_UNAVAILABLE_TYPE(2, 28)
424#else
425# define GLIB_AVAILABLE_IN_2_28 _GLIB_EXTERN
426# define GLIB_AVAILABLE_MACRO_IN_2_28
427# define GLIB_AVAILABLE_ENUMERATOR_IN_2_28
428# define GLIB_AVAILABLE_TYPE_IN_2_28
429#endif
430
431#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_30
432# define GLIB_DEPRECATED_IN_2_30 GLIB_DEPRECATED
433# define GLIB_DEPRECATED_IN_2_30_FOR(f) GLIB_DEPRECATED_FOR(f)
434# define GLIB_DEPRECATED_MACRO_IN_2_30 GLIB_DEPRECATED_MACRO
435# define GLIB_DEPRECATED_MACRO_IN_2_30_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
436# define GLIB_DEPRECATED_ENUMERATOR_IN_2_30 GLIB_DEPRECATED_ENUMERATOR
437# define GLIB_DEPRECATED_ENUMERATOR_IN_2_30_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
438# define GLIB_DEPRECATED_TYPE_IN_2_30 GLIB_DEPRECATED_TYPE
439# define GLIB_DEPRECATED_TYPE_IN_2_30_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
440#else
441# define GLIB_DEPRECATED_IN_2_30 _GLIB_EXTERN
442# define GLIB_DEPRECATED_IN_2_30_FOR(f) _GLIB_EXTERN
443# define GLIB_DEPRECATED_MACRO_IN_2_30
444# define GLIB_DEPRECATED_MACRO_IN_2_30_FOR(f)
445# define GLIB_DEPRECATED_ENUMERATOR_IN_2_30
446# define GLIB_DEPRECATED_ENUMERATOR_IN_2_30_FOR(f)
447# define GLIB_DEPRECATED_TYPE_IN_2_30
448# define GLIB_DEPRECATED_TYPE_IN_2_30_FOR(f)
449#endif
450
451#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_30
452# define GLIB_AVAILABLE_IN_2_30 GLIB_UNAVAILABLE(2, 30)
453# define GLIB_AVAILABLE_MACRO_IN_2_30 GLIB_UNAVAILABLE_MACRO(2, 30)
454# define GLIB_AVAILABLE_ENUMERATOR_IN_2_30 GLIB_UNAVAILABLE_ENUMERATOR(2, 30)
455# define GLIB_AVAILABLE_TYPE_IN_2_30 GLIB_UNAVAILABLE_TYPE(2, 30)
456#else
457# define GLIB_AVAILABLE_IN_2_30 _GLIB_EXTERN
458# define GLIB_AVAILABLE_MACRO_IN_2_30
459# define GLIB_AVAILABLE_ENUMERATOR_IN_2_30
460# define GLIB_AVAILABLE_TYPE_IN_2_30
461#endif
462
463#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_32
464# define GLIB_DEPRECATED_IN_2_32 GLIB_DEPRECATED
465# define GLIB_DEPRECATED_IN_2_32_FOR(f) GLIB_DEPRECATED_FOR(f)
466# define GLIB_DEPRECATED_MACRO_IN_2_32 GLIB_DEPRECATED_MACRO
467# define GLIB_DEPRECATED_MACRO_IN_2_32_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
468# define GLIB_DEPRECATED_ENUMERATOR_IN_2_32 GLIB_DEPRECATED_ENUMERATOR
469# define GLIB_DEPRECATED_ENUMERATOR_IN_2_32_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
470# define GLIB_DEPRECATED_TYPE_IN_2_32 GLIB_DEPRECATED_TYPE
471# define GLIB_DEPRECATED_TYPE_IN_2_32_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
472#else
473# define GLIB_DEPRECATED_IN_2_32 _GLIB_EXTERN
474# define GLIB_DEPRECATED_IN_2_32_FOR(f) _GLIB_EXTERN
475# define GLIB_DEPRECATED_MACRO_IN_2_32
476# define GLIB_DEPRECATED_MACRO_IN_2_32_FOR(f)
477# define GLIB_DEPRECATED_ENUMERATOR_IN_2_32
478# define GLIB_DEPRECATED_ENUMERATOR_IN_2_32_FOR(f)
479# define GLIB_DEPRECATED_TYPE_IN_2_32
480# define GLIB_DEPRECATED_TYPE_IN_2_32_FOR(f)
481# define GLIB_DEPRECATED_ENUMERATOR_IN_2_32
482# define GLIB_DEPRECATED_ENUMERATOR_IN_2_32_FOR(f)
483# define GLIB_DEPRECATED_TYPE_IN_2_32
484# define GLIB_DEPRECATED_TYPE_IN_2_32_FOR(f)
485#endif
486
487#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_32
488# define GLIB_AVAILABLE_IN_2_32 GLIB_UNAVAILABLE(2, 32)
489# define GLIB_AVAILABLE_MACRO_IN_2_32 GLIB_UNAVAILABLE_MACRO(2, 32)
490# define GLIB_AVAILABLE_ENUMERATOR_IN_2_32 GLIB_UNAVAILABLE_ENUMERATOR(2, 32)
491# define GLIB_AVAILABLE_TYPE_IN_2_32 GLIB_UNAVAILABLE_TYPE(2, 32)
492#else
493# define GLIB_AVAILABLE_IN_2_32 _GLIB_EXTERN
494# define GLIB_AVAILABLE_MACRO_IN_2_32
495# define GLIB_AVAILABLE_ENUMERATOR_IN_2_32
496# define GLIB_AVAILABLE_TYPE_IN_2_32
497#endif
498
499#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_34
500# define GLIB_DEPRECATED_IN_2_34 GLIB_DEPRECATED
501# define GLIB_DEPRECATED_IN_2_34_FOR(f) GLIB_DEPRECATED_FOR(f)
502# define GLIB_DEPRECATED_MACRO_IN_2_34 GLIB_DEPRECATED_MACRO
503# define GLIB_DEPRECATED_MACRO_IN_2_34_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
504# define GLIB_DEPRECATED_ENUMERATOR_IN_2_34 GLIB_DEPRECATED_ENUMERATOR
505# define GLIB_DEPRECATED_ENUMERATOR_IN_2_34_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
506# define GLIB_DEPRECATED_TYPE_IN_2_34 GLIB_DEPRECATED_TYPE
507# define GLIB_DEPRECATED_TYPE_IN_2_34_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
508#else
509# define GLIB_DEPRECATED_IN_2_34 _GLIB_EXTERN
510# define GLIB_DEPRECATED_IN_2_34_FOR(f) _GLIB_EXTERN
511# define GLIB_DEPRECATED_MACRO_IN_2_34
512# define GLIB_DEPRECATED_MACRO_IN_2_34_FOR(f)
513# define GLIB_DEPRECATED_ENUMERATOR_IN_2_34
514# define GLIB_DEPRECATED_ENUMERATOR_IN_2_34_FOR(f)
515# define GLIB_DEPRECATED_TYPE_IN_2_34
516# define GLIB_DEPRECATED_TYPE_IN_2_34_FOR(f)
517#endif
518
519#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_34
520# define GLIB_AVAILABLE_IN_2_34 GLIB_UNAVAILABLE(2, 34)
521# define GLIB_AVAILABLE_MACRO_IN_2_34 GLIB_UNAVAILABLE_MACRO(2, 34)
522# define GLIB_AVAILABLE_ENUMERATOR_IN_2_34 GLIB_UNAVAILABLE_ENUMERATOR(2, 34)
523# define GLIB_AVAILABLE_TYPE_IN_2_34 GLIB_UNAVAILABLE_TYPE(2, 34)
524#else
525# define GLIB_AVAILABLE_IN_2_34 _GLIB_EXTERN
526# define GLIB_AVAILABLE_MACRO_IN_2_34
527# define GLIB_AVAILABLE_ENUMERATOR_IN_2_34
528# define GLIB_AVAILABLE_TYPE_IN_2_34
529#endif
530
531#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_36
532# define GLIB_DEPRECATED_IN_2_36 GLIB_DEPRECATED
533# define GLIB_DEPRECATED_IN_2_36_FOR(f) GLIB_DEPRECATED_FOR(f)
534# define GLIB_DEPRECATED_MACRO_IN_2_36 GLIB_DEPRECATED_MACRO
535# define GLIB_DEPRECATED_MACRO_IN_2_36_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
536# define GLIB_DEPRECATED_ENUMERATOR_IN_2_36 GLIB_DEPRECATED_ENUMERATOR
537# define GLIB_DEPRECATED_ENUMERATOR_IN_2_36_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
538# define GLIB_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE
539# define GLIB_DEPRECATED_TYPE_IN_2_36_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
540#else
541# define GLIB_DEPRECATED_IN_2_36 _GLIB_EXTERN
542# define GLIB_DEPRECATED_IN_2_36_FOR(f) _GLIB_EXTERN
543# define GLIB_DEPRECATED_MACRO_IN_2_36
544# define GLIB_DEPRECATED_MACRO_IN_2_36_FOR(f)
545# define GLIB_DEPRECATED_ENUMERATOR_IN_2_36
546# define GLIB_DEPRECATED_ENUMERATOR_IN_2_36_FOR(f)
547# define GLIB_DEPRECATED_TYPE_IN_2_36
548# define GLIB_DEPRECATED_TYPE_IN_2_36_FOR(f)
549#endif
550
551#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_36
552# define GLIB_AVAILABLE_IN_2_36 GLIB_UNAVAILABLE(2, 36)
553# define GLIB_AVAILABLE_MACRO_IN_2_36 GLIB_UNAVAILABLE_MACRO(2, 36)
554# define GLIB_AVAILABLE_ENUMERATOR_IN_2_36 GLIB_UNAVAILABLE_ENUMERATOR(2, 36)
555# define GLIB_AVAILABLE_TYPE_IN_2_36 GLIB_UNAVAILABLE_TYPE(2, 36)
556#else
557# define GLIB_AVAILABLE_IN_2_36 _GLIB_EXTERN
558# define GLIB_AVAILABLE_MACRO_IN_2_36
559# define GLIB_AVAILABLE_ENUMERATOR_IN_2_36
560# define GLIB_AVAILABLE_TYPE_IN_2_36
561#endif
562
563#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_38
564# define GLIB_DEPRECATED_IN_2_38 GLIB_DEPRECATED
565# define GLIB_DEPRECATED_IN_2_38_FOR(f) GLIB_DEPRECATED_FOR(f)
566# define GLIB_DEPRECATED_MACRO_IN_2_38 GLIB_DEPRECATED_MACRO
567# define GLIB_DEPRECATED_MACRO_IN_2_38_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
568# define GLIB_DEPRECATED_ENUMERATOR_IN_2_38 GLIB_DEPRECATED_ENUMERATOR
569# define GLIB_DEPRECATED_ENUMERATOR_IN_2_38_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
570# define GLIB_DEPRECATED_TYPE_IN_2_38 GLIB_DEPRECATED_TYPE
571# define GLIB_DEPRECATED_TYPE_IN_2_38_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
572#else
573# define GLIB_DEPRECATED_IN_2_38 _GLIB_EXTERN
574# define GLIB_DEPRECATED_IN_2_38_FOR(f) _GLIB_EXTERN
575# define GLIB_DEPRECATED_MACRO_IN_2_38
576# define GLIB_DEPRECATED_MACRO_IN_2_38_FOR(f)
577# define GLIB_DEPRECATED_ENUMERATOR_IN_2_38
578# define GLIB_DEPRECATED_ENUMERATOR_IN_2_38_FOR(f)
579# define GLIB_DEPRECATED_TYPE_IN_2_38
580# define GLIB_DEPRECATED_TYPE_IN_2_38_FOR(f)
581#endif
582
583#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
584# define GLIB_AVAILABLE_IN_2_38 GLIB_UNAVAILABLE(2, 38)
585# define GLIB_AVAILABLE_MACRO_IN_2_38 GLIB_UNAVAILABLE_MACRO(2, 38)
586# define GLIB_AVAILABLE_ENUMERATOR_IN_2_38 GLIB_UNAVAILABLE_ENUMERATOR(2, 38)
587# define GLIB_AVAILABLE_TYPE_IN_2_38 GLIB_UNAVAILABLE_TYPE(2, 38)
588#else
589# define GLIB_AVAILABLE_IN_2_38 _GLIB_EXTERN
590# define GLIB_AVAILABLE_MACRO_IN_2_38
591# define GLIB_AVAILABLE_ENUMERATOR_IN_2_38
592# define GLIB_AVAILABLE_TYPE_IN_2_38
593#endif
594
595#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_40
596# define GLIB_DEPRECATED_IN_2_40 GLIB_DEPRECATED
597# define GLIB_DEPRECATED_IN_2_40_FOR(f) GLIB_DEPRECATED_FOR(f)
598# define GLIB_DEPRECATED_MACRO_IN_2_40 GLIB_DEPRECATED_MACRO
599# define GLIB_DEPRECATED_MACRO_IN_2_40_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
600# define GLIB_DEPRECATED_ENUMERATOR_IN_2_40 GLIB_DEPRECATED_ENUMERATOR
601# define GLIB_DEPRECATED_ENUMERATOR_IN_2_40_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
602# define GLIB_DEPRECATED_TYPE_IN_2_40 GLIB_DEPRECATED_TYPE
603# define GLIB_DEPRECATED_TYPE_IN_2_40_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
604#else
605# define GLIB_DEPRECATED_IN_2_40 _GLIB_EXTERN
606# define GLIB_DEPRECATED_IN_2_40_FOR(f) _GLIB_EXTERN
607# define GLIB_DEPRECATED_MACRO_IN_2_40
608# define GLIB_DEPRECATED_MACRO_IN_2_40_FOR(f)
609# define GLIB_DEPRECATED_ENUMERATOR_IN_2_40
610# define GLIB_DEPRECATED_ENUMERATOR_IN_2_40_FOR(f)
611# define GLIB_DEPRECATED_TYPE_IN_2_40
612# define GLIB_DEPRECATED_TYPE_IN_2_40_FOR(f)
613#endif
614
615#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_40
616# define GLIB_AVAILABLE_IN_2_40 GLIB_UNAVAILABLE(2, 40)
617# define GLIB_AVAILABLE_MACRO_IN_2_40 GLIB_UNAVAILABLE_MACRO(2, 40)
618# define GLIB_AVAILABLE_ENUMERATOR_IN_2_40 GLIB_UNAVAILABLE_ENUMERATOR(2, 40)
619# define GLIB_AVAILABLE_TYPE_IN_2_40 GLIB_UNAVAILABLE_TYPE(2, 40)
620#else
621# define GLIB_AVAILABLE_IN_2_40 _GLIB_EXTERN
622# define GLIB_AVAILABLE_MACRO_IN_2_40
623# define GLIB_AVAILABLE_ENUMERATOR_IN_2_40
624# define GLIB_AVAILABLE_TYPE_IN_2_40
625#endif
626
627#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_42
628# define GLIB_DEPRECATED_IN_2_42 GLIB_DEPRECATED
629# define GLIB_DEPRECATED_IN_2_42_FOR(f) GLIB_DEPRECATED_FOR(f)
630# define GLIB_DEPRECATED_MACRO_IN_2_42 GLIB_DEPRECATED_MACRO
631# define GLIB_DEPRECATED_MACRO_IN_2_42_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
632#else
633# define GLIB_DEPRECATED_IN_2_42 _GLIB_EXTERN
634# define GLIB_DEPRECATED_IN_2_42_FOR(f) _GLIB_EXTERN
635# define GLIB_DEPRECATED_MACRO_IN_2_42
636# define GLIB_DEPRECATED_MACRO_IN_2_42_FOR(f)
637# define GLIB_DEPRECATED_ENUMERATOR_IN_2_42
638# define GLIB_DEPRECATED_ENUMERATOR_IN_2_42_FOR(f)
639# define GLIB_DEPRECATED_TYPE_IN_2_42
640# define GLIB_DEPRECATED_TYPE_IN_2_42_FOR(f)
641#endif
642
643#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_42
644# define GLIB_AVAILABLE_IN_2_42 GLIB_UNAVAILABLE(2, 42)
645# define GLIB_AVAILABLE_MACRO_IN_2_42 GLIB_UNAVAILABLE_MACRO(2, 42)
646# define GLIB_AVAILABLE_ENUMERATOR_IN_2_42 GLIB_UNAVAILABLE_ENUMERATOR(2, 42)
647# define GLIB_AVAILABLE_TYPE_IN_2_42 GLIB_UNAVAILABLE_TYPE(2, 42)
648#else
649# define GLIB_AVAILABLE_IN_2_42 _GLIB_EXTERN
650# define GLIB_AVAILABLE_MACRO_IN_2_42
651# define GLIB_AVAILABLE_ENUMERATOR_IN_2_42
652# define GLIB_AVAILABLE_TYPE_IN_2_42
653#endif
654
655#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_44
656# define GLIB_DEPRECATED_IN_2_44 GLIB_DEPRECATED
657# define GLIB_DEPRECATED_IN_2_44_FOR(f) GLIB_DEPRECATED_FOR(f)
658# define GLIB_DEPRECATED_MACRO_IN_2_44 GLIB_DEPRECATED_MACRO
659# define GLIB_DEPRECATED_MACRO_IN_2_44_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
660# define GLIB_DEPRECATED_ENUMERATOR_IN_2_44 GLIB_DEPRECATED_ENUMERATOR
661# define GLIB_DEPRECATED_ENUMERATOR_IN_2_44_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
662# define GLIB_DEPRECATED_TYPE_IN_2_44 GLIB_DEPRECATED_TYPE
663# define GLIB_DEPRECATED_TYPE_IN_2_44_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
664#else
665# define GLIB_DEPRECATED_IN_2_44 _GLIB_EXTERN
666# define GLIB_DEPRECATED_IN_2_44_FOR(f) _GLIB_EXTERN
667# define GLIB_DEPRECATED_MACRO_IN_2_44
668# define GLIB_DEPRECATED_MACRO_IN_2_44_FOR(f)
669# define GLIB_DEPRECATED_ENUMERATOR_IN_2_44
670# define GLIB_DEPRECATED_ENUMERATOR_IN_2_44_FOR(f)
671# define GLIB_DEPRECATED_TYPE_IN_2_44
672# define GLIB_DEPRECATED_TYPE_IN_2_44_FOR(f)
673#endif
674
675#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_44
676# define GLIB_AVAILABLE_IN_2_44 GLIB_UNAVAILABLE(2, 44)
677# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_44 GLIB_UNAVAILABLE_STATIC_INLINE(2, 44)
678# define GLIB_AVAILABLE_MACRO_IN_2_44 GLIB_UNAVAILABLE_MACRO(2, 44)
679# define GLIB_AVAILABLE_ENUMERATOR_IN_2_44 GLIB_UNAVAILABLE_ENUMERATOR(2, 44)
680# define GLIB_AVAILABLE_TYPE_IN_2_44 GLIB_UNAVAILABLE_TYPE(2, 44)
681#else
682# define GLIB_AVAILABLE_IN_2_44 _GLIB_EXTERN
683# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_44
684# define GLIB_AVAILABLE_MACRO_IN_2_44
685# define GLIB_AVAILABLE_ENUMERATOR_IN_2_44
686# define GLIB_AVAILABLE_TYPE_IN_2_44
687#endif
688
689#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_46
690# define GLIB_DEPRECATED_IN_2_46 GLIB_DEPRECATED
691# define GLIB_DEPRECATED_IN_2_46_FOR(f) GLIB_DEPRECATED_FOR(f)
692# define GLIB_DEPRECATED_MACRO_IN_2_46 GLIB_DEPRECATED_MACRO
693# define GLIB_DEPRECATED_MACRO_IN_2_46_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
694#else
695# define GLIB_DEPRECATED_IN_2_46 _GLIB_EXTERN
696# define GLIB_DEPRECATED_IN_2_46_FOR(f) _GLIB_EXTERN
697# define GLIB_DEPRECATED_MACRO_IN_2_46
698# define GLIB_DEPRECATED_MACRO_IN_2_46_FOR(f)
699# define GLIB_DEPRECATED_ENUMERATOR_IN_2_46
700# define GLIB_DEPRECATED_ENUMERATOR_IN_2_46_FOR(f)
701# define GLIB_DEPRECATED_TYPE_IN_2_46
702# define GLIB_DEPRECATED_TYPE_IN_2_46_FOR(f)
703#endif
704
705#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_46
706# define GLIB_AVAILABLE_IN_2_46 GLIB_UNAVAILABLE(2, 46)
707# define GLIB_AVAILABLE_MACRO_IN_2_46 GLIB_UNAVAILABLE_MACRO(2, 46)
708# define GLIB_AVAILABLE_ENUMERATOR_IN_2_46 GLIB_UNAVAILABLE_ENUMERATOR(2, 46)
709# define GLIB_AVAILABLE_TYPE_IN_2_46 GLIB_UNAVAILABLE_TYPE(2, 46)
710#else
711# define GLIB_AVAILABLE_IN_2_46 _GLIB_EXTERN
712# define GLIB_AVAILABLE_MACRO_IN_2_46
713# define GLIB_AVAILABLE_ENUMERATOR_IN_2_46
714# define GLIB_AVAILABLE_TYPE_IN_2_46
715#endif
716
717#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_48
718# define GLIB_DEPRECATED_IN_2_48 GLIB_DEPRECATED
719# define GLIB_DEPRECATED_IN_2_48_FOR(f) GLIB_DEPRECATED_FOR(f)
720# define GLIB_DEPRECATED_MACRO_IN_2_48 GLIB_DEPRECATED_MACRO
721# define GLIB_DEPRECATED_MACRO_IN_2_48_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
722# define GLIB_DEPRECATED_ENUMERATOR_IN_2_48 GLIB_DEPRECATED_ENUMERATOR
723# define GLIB_DEPRECATED_ENUMERATOR_IN_2_48_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
724# define GLIB_DEPRECATED_TYPE_IN_2_48 GLIB_DEPRECATED_TYPE
725# define GLIB_DEPRECATED_TYPE_IN_2_48_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
726#else
727# define GLIB_DEPRECATED_IN_2_48 _GLIB_EXTERN
728# define GLIB_DEPRECATED_IN_2_48_FOR(f) _GLIB_EXTERN
729# define GLIB_DEPRECATED_MACRO_IN_2_48
730# define GLIB_DEPRECATED_MACRO_IN_2_48_FOR(f)
731# define GLIB_DEPRECATED_ENUMERATOR_IN_2_48
732# define GLIB_DEPRECATED_ENUMERATOR_IN_2_48_FOR(f)
733# define GLIB_DEPRECATED_TYPE_IN_2_48
734# define GLIB_DEPRECATED_TYPE_IN_2_48_FOR(f)
735#endif
736
737#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_48
738# define GLIB_AVAILABLE_IN_2_48 GLIB_UNAVAILABLE(2, 48)
739# define GLIB_AVAILABLE_MACRO_IN_2_48 GLIB_UNAVAILABLE_MACRO(2, 48)
740# define GLIB_AVAILABLE_ENUMERATOR_IN_2_48 GLIB_UNAVAILABLE_ENUMERATOR(2, 48)
741# define GLIB_AVAILABLE_TYPE_IN_2_48 GLIB_UNAVAILABLE_TYPE(2, 48)
742#else
743# define GLIB_AVAILABLE_IN_2_48 _GLIB_EXTERN
744# define GLIB_AVAILABLE_MACRO_IN_2_48
745# define GLIB_AVAILABLE_ENUMERATOR_IN_2_48
746# define GLIB_AVAILABLE_TYPE_IN_2_48
747#endif
748
749#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_50
750# define GLIB_DEPRECATED_IN_2_50 GLIB_DEPRECATED
751# define GLIB_DEPRECATED_IN_2_50_FOR(f) GLIB_DEPRECATED_FOR(f)
752# define GLIB_DEPRECATED_MACRO_IN_2_50 GLIB_DEPRECATED_MACRO
753# define GLIB_DEPRECATED_MACRO_IN_2_50_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
754# define GLIB_DEPRECATED_ENUMERATOR_IN_2_50 GLIB_DEPRECATED_ENUMERATOR
755# define GLIB_DEPRECATED_ENUMERATOR_IN_2_50_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
756# define GLIB_DEPRECATED_TYPE_IN_2_50 GLIB_DEPRECATED_TYPE
757# define GLIB_DEPRECATED_TYPE_IN_2_50_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
758#else
759# define GLIB_DEPRECATED_IN_2_50 _GLIB_EXTERN
760# define GLIB_DEPRECATED_IN_2_50_FOR(f) _GLIB_EXTERN
761# define GLIB_DEPRECATED_MACRO_IN_2_50
762# define GLIB_DEPRECATED_MACRO_IN_2_50_FOR(f)
763# define GLIB_DEPRECATED_ENUMERATOR_IN_2_50
764# define GLIB_DEPRECATED_ENUMERATOR_IN_2_50_FOR(f)
765# define GLIB_DEPRECATED_TYPE_IN_2_50
766# define GLIB_DEPRECATED_TYPE_IN_2_50_FOR(f)
767#endif
768
769#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_50
770# define GLIB_AVAILABLE_IN_2_50 GLIB_UNAVAILABLE(2, 50)
771# define GLIB_AVAILABLE_MACRO_IN_2_50 GLIB_UNAVAILABLE_MACRO(2, 50)
772# define GLIB_AVAILABLE_ENUMERATOR_IN_2_50 GLIB_UNAVAILABLE_ENUMERATOR(2, 50)
773# define GLIB_AVAILABLE_TYPE_IN_2_50 GLIB_UNAVAILABLE_TYPE(2, 50)
774#else
775# define GLIB_AVAILABLE_IN_2_50 _GLIB_EXTERN
776# define GLIB_AVAILABLE_MACRO_IN_2_50
777# define GLIB_AVAILABLE_ENUMERATOR_IN_2_50
778# define GLIB_AVAILABLE_TYPE_IN_2_50
779#endif
780
781#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_52
782# define GLIB_DEPRECATED_IN_2_52 GLIB_DEPRECATED
783# define GLIB_DEPRECATED_IN_2_52_FOR(f) GLIB_DEPRECATED_FOR(f)
784# define GLIB_DEPRECATED_MACRO_IN_2_52 GLIB_DEPRECATED_MACRO
785# define GLIB_DEPRECATED_MACRO_IN_2_52_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
786# define GLIB_DEPRECATED_ENUMERATOR_IN_2_52 GLIB_DEPRECATED_ENUMERATOR
787# define GLIB_DEPRECATED_ENUMERATOR_IN_2_52_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
788# define GLIB_DEPRECATED_TYPE_IN_2_52 GLIB_DEPRECATED_TYPE
789# define GLIB_DEPRECATED_TYPE_IN_2_52_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
790#else
791# define GLIB_DEPRECATED_IN_2_52 _GLIB_EXTERN
792# define GLIB_DEPRECATED_IN_2_52_FOR(f) _GLIB_EXTERN
793# define GLIB_DEPRECATED_MACRO_IN_2_52
794# define GLIB_DEPRECATED_MACRO_IN_2_52_FOR(f)
795# define GLIB_DEPRECATED_ENUMERATOR_IN_2_52
796# define GLIB_DEPRECATED_ENUMERATOR_IN_2_52_FOR(f)
797# define GLIB_DEPRECATED_TYPE_IN_2_52
798# define GLIB_DEPRECATED_TYPE_IN_2_52_FOR(f)
799#endif
800
801#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_52
802# define GLIB_AVAILABLE_IN_2_52 GLIB_UNAVAILABLE(2, 52)
803# define GLIB_AVAILABLE_MACRO_IN_2_52 GLIB_UNAVAILABLE_MACRO(2, 52)
804# define GLIB_AVAILABLE_ENUMERATOR_IN_2_52 GLIB_UNAVAILABLE_ENUMERATOR(2, 52)
805# define GLIB_AVAILABLE_TYPE_IN_2_52 GLIB_UNAVAILABLE_TYPE(2, 52)
806#else
807# define GLIB_AVAILABLE_IN_2_52 _GLIB_EXTERN
808# define GLIB_AVAILABLE_MACRO_IN_2_52
809# define GLIB_AVAILABLE_ENUMERATOR_IN_2_52
810# define GLIB_AVAILABLE_TYPE_IN_2_52
811#endif
812
813#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_54
814# define GLIB_DEPRECATED_IN_2_54 GLIB_DEPRECATED
815# define GLIB_DEPRECATED_IN_2_54_FOR(f) GLIB_DEPRECATED_FOR(f)
816# define GLIB_DEPRECATED_MACRO_IN_2_54 GLIB_DEPRECATED_MACRO
817# define GLIB_DEPRECATED_MACRO_IN_2_54_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
818# define GLIB_DEPRECATED_ENUMERATOR_IN_2_54 GLIB_DEPRECATED_ENUMERATOR
819# define GLIB_DEPRECATED_ENUMERATOR_IN_2_54_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
820# define GLIB_DEPRECATED_TYPE_IN_2_54 GLIB_DEPRECATED_TYPE
821# define GLIB_DEPRECATED_TYPE_IN_2_54_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
822#else
823# define GLIB_DEPRECATED_IN_2_54 _GLIB_EXTERN
824# define GLIB_DEPRECATED_IN_2_54_FOR(f) _GLIB_EXTERN
825# define GLIB_DEPRECATED_MACRO_IN_2_54
826# define GLIB_DEPRECATED_MACRO_IN_2_54_FOR(f)
827# define GLIB_DEPRECATED_ENUMERATOR_IN_2_54
828# define GLIB_DEPRECATED_ENUMERATOR_IN_2_54_FOR(f)
829# define GLIB_DEPRECATED_TYPE_IN_2_54
830# define GLIB_DEPRECATED_TYPE_IN_2_54_FOR(f)
831#endif
832
833#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_54
834# define GLIB_AVAILABLE_IN_2_54 GLIB_UNAVAILABLE(2, 54)
835# define GLIB_AVAILABLE_MACRO_IN_2_54 GLIB_UNAVAILABLE_MACRO(2, 54)
836# define GLIB_AVAILABLE_ENUMERATOR_IN_2_54 GLIB_UNAVAILABLE_ENUMERATOR(2, 54)
837# define GLIB_AVAILABLE_TYPE_IN_2_54 GLIB_UNAVAILABLE_TYPE(2, 54)
838#else
839# define GLIB_AVAILABLE_IN_2_54 _GLIB_EXTERN
840# define GLIB_AVAILABLE_MACRO_IN_2_54
841# define GLIB_AVAILABLE_ENUMERATOR_IN_2_54
842# define GLIB_AVAILABLE_TYPE_IN_2_54
843#endif
844
845#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_56
846# define GLIB_DEPRECATED_IN_2_56 GLIB_DEPRECATED
847# define GLIB_DEPRECATED_IN_2_56_FOR(f) GLIB_DEPRECATED_FOR(f)
848# define GLIB_DEPRECATED_MACRO_IN_2_56 GLIB_DEPRECATED_MACRO
849# define GLIB_DEPRECATED_MACRO_IN_2_56_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
850# define GLIB_DEPRECATED_ENUMERATOR_IN_2_56 GLIB_DEPRECATED_ENUMERATOR
851# define GLIB_DEPRECATED_ENUMERATOR_IN_2_56_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
852# define GLIB_DEPRECATED_TYPE_IN_2_56 GLIB_DEPRECATED_TYPE
853# define GLIB_DEPRECATED_TYPE_IN_2_56_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
854#else
855# define GLIB_DEPRECATED_IN_2_56 _GLIB_EXTERN
856# define GLIB_DEPRECATED_IN_2_56_FOR(f) _GLIB_EXTERN
857# define GLIB_DEPRECATED_MACRO_IN_2_56
858# define GLIB_DEPRECATED_MACRO_IN_2_56_FOR(f)
859# define GLIB_DEPRECATED_ENUMERATOR_IN_2_56
860# define GLIB_DEPRECATED_ENUMERATOR_IN_2_56_FOR(f)
861# define GLIB_DEPRECATED_TYPE_IN_2_56
862# define GLIB_DEPRECATED_TYPE_IN_2_56_FOR(f)
863#endif
864
865#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_56
866# define GLIB_AVAILABLE_IN_2_56 GLIB_UNAVAILABLE(2, 56)
867# define GLIB_AVAILABLE_MACRO_IN_2_56 GLIB_UNAVAILABLE_MACRO(2, 56)
868# define GLIB_AVAILABLE_ENUMERATOR_IN_2_56 GLIB_UNAVAILABLE_ENUMERATOR(2, 56)
869# define GLIB_AVAILABLE_TYPE_IN_2_56 GLIB_UNAVAILABLE_TYPE(2, 56)
870#else
871# define GLIB_AVAILABLE_IN_2_56 _GLIB_EXTERN
872# define GLIB_AVAILABLE_MACRO_IN_2_56
873# define GLIB_AVAILABLE_ENUMERATOR_IN_2_56
874# define GLIB_AVAILABLE_TYPE_IN_2_56
875#endif
876
877#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_58
878# define GLIB_DEPRECATED_IN_2_58 GLIB_DEPRECATED
879# define GLIB_DEPRECATED_IN_2_58_FOR(f) GLIB_DEPRECATED_FOR(f)
880# define GLIB_DEPRECATED_MACRO_IN_2_58 GLIB_DEPRECATED_MACRO
881# define GLIB_DEPRECATED_MACRO_IN_2_58_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
882# define GLIB_DEPRECATED_ENUMERATOR_IN_2_58 GLIB_DEPRECATED_ENUMERATOR
883# define GLIB_DEPRECATED_ENUMERATOR_IN_2_58_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
884# define GLIB_DEPRECATED_TYPE_IN_2_58 GLIB_DEPRECATED_TYPE
885# define GLIB_DEPRECATED_TYPE_IN_2_58_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
886#else
887# define GLIB_DEPRECATED_IN_2_58 _GLIB_EXTERN
888# define GLIB_DEPRECATED_IN_2_58_FOR(f) _GLIB_EXTERN
889# define GLIB_DEPRECATED_MACRO_IN_2_58
890# define GLIB_DEPRECATED_MACRO_IN_2_58_FOR(f)
891# define GLIB_DEPRECATED_ENUMERATOR_IN_2_58
892# define GLIB_DEPRECATED_ENUMERATOR_IN_2_58_FOR(f)
893# define GLIB_DEPRECATED_TYPE_IN_2_58
894# define GLIB_DEPRECATED_TYPE_IN_2_58_FOR(f)
895#endif
896
897#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_58
898# define GLIB_AVAILABLE_IN_2_58 GLIB_UNAVAILABLE(2, 58)
899# define GLIB_AVAILABLE_MACRO_IN_2_58 GLIB_UNAVAILABLE_MACRO(2, 58)
900# define GLIB_AVAILABLE_ENUMERATOR_IN_2_58 GLIB_UNAVAILABLE_ENUMERATOR(2, 58)
901# define GLIB_AVAILABLE_TYPE_IN_2_58 GLIB_UNAVAILABLE_TYPE(2, 58)
902#else
903# define GLIB_AVAILABLE_IN_2_58 _GLIB_EXTERN
904# define GLIB_AVAILABLE_MACRO_IN_2_58
905# define GLIB_AVAILABLE_ENUMERATOR_IN_2_58
906# define GLIB_AVAILABLE_TYPE_IN_2_58
907#endif
908
909#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_60
910# define GLIB_DEPRECATED_IN_2_60 GLIB_DEPRECATED
911# define GLIB_DEPRECATED_IN_2_60_FOR(f) GLIB_DEPRECATED_FOR(f)
912# define GLIB_DEPRECATED_MACRO_IN_2_60 GLIB_DEPRECATED_MACRO
913# define GLIB_DEPRECATED_MACRO_IN_2_60_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
914# define GLIB_DEPRECATED_ENUMERATOR_IN_2_60 GLIB_DEPRECATED_ENUMERATOR
915# define GLIB_DEPRECATED_ENUMERATOR_IN_2_60_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
916# define GLIB_DEPRECATED_TYPE_IN_2_60 GLIB_DEPRECATED_TYPE
917# define GLIB_DEPRECATED_TYPE_IN_2_60_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
918#else
919# define GLIB_DEPRECATED_IN_2_60 _GLIB_EXTERN
920# define GLIB_DEPRECATED_IN_2_60_FOR(f) _GLIB_EXTERN
921# define GLIB_DEPRECATED_MACRO_IN_2_60
922# define GLIB_DEPRECATED_MACRO_IN_2_60_FOR(f)
923# define GLIB_DEPRECATED_ENUMERATOR_IN_2_60
924# define GLIB_DEPRECATED_ENUMERATOR_IN_2_60_FOR(f)
925# define GLIB_DEPRECATED_TYPE_IN_2_60
926# define GLIB_DEPRECATED_TYPE_IN_2_60_FOR(f)
927#endif
928
929#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_60
930# define GLIB_AVAILABLE_IN_2_60 GLIB_UNAVAILABLE(2, 60)
931# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_60 GLIB_UNAVAILABLE_STATIC_INLINE(2, 60)
932# define GLIB_AVAILABLE_MACRO_IN_2_60 GLIB_UNAVAILABLE_MACRO(2, 60)
933# define GLIB_AVAILABLE_ENUMERATOR_IN_2_60 GLIB_UNAVAILABLE_ENUMERATOR(2, 60)
934# define GLIB_AVAILABLE_TYPE_IN_2_60 GLIB_UNAVAILABLE_TYPE(2, 60)
935#else
936# define GLIB_AVAILABLE_IN_2_60 _GLIB_EXTERN
937# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_60
938# define GLIB_AVAILABLE_MACRO_IN_2_60
939# define GLIB_AVAILABLE_ENUMERATOR_IN_2_60
940# define GLIB_AVAILABLE_TYPE_IN_2_60
941#endif
942
943#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_62
944# define GLIB_DEPRECATED_IN_2_62 GLIB_DEPRECATED
945# define GLIB_DEPRECATED_IN_2_62_FOR(f) GLIB_DEPRECATED_FOR(f)
946# define GLIB_DEPRECATED_MACRO_IN_2_62 GLIB_DEPRECATED_MACRO
947# define GLIB_DEPRECATED_MACRO_IN_2_62_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
948# define GLIB_DEPRECATED_ENUMERATOR_IN_2_62 GLIB_DEPRECATED_ENUMERATOR
949# define GLIB_DEPRECATED_ENUMERATOR_IN_2_62_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
950# define GLIB_DEPRECATED_TYPE_IN_2_62 GLIB_DEPRECATED_TYPE
951# define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
952#else
953# define GLIB_DEPRECATED_IN_2_62 _GLIB_EXTERN
954# define GLIB_DEPRECATED_IN_2_62_FOR(f) _GLIB_EXTERN
955# define GLIB_DEPRECATED_MACRO_IN_2_62
956# define GLIB_DEPRECATED_MACRO_IN_2_62_FOR(f)
957# define GLIB_DEPRECATED_ENUMERATOR_IN_2_62
958# define GLIB_DEPRECATED_ENUMERATOR_IN_2_62_FOR(f)
959# define GLIB_DEPRECATED_TYPE_IN_2_62
960# define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f)
961#endif
962
963#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_62
964# define GLIB_AVAILABLE_IN_2_62 GLIB_UNAVAILABLE(2, 62)
965# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_62 GLIB_UNAVAILABLE_STATIC_INLINE(2, 62)
966# define GLIB_AVAILABLE_MACRO_IN_2_62 GLIB_UNAVAILABLE_MACRO(2, 62)
967# define GLIB_AVAILABLE_ENUMERATOR_IN_2_62 GLIB_UNAVAILABLE_ENUMERATOR(2, 62)
968# define GLIB_AVAILABLE_TYPE_IN_2_62 GLIB_UNAVAILABLE_TYPE(2, 62)
969#else
970# define GLIB_AVAILABLE_IN_2_62 _GLIB_EXTERN
971# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_62
972# define GLIB_AVAILABLE_MACRO_IN_2_62
973# define GLIB_AVAILABLE_ENUMERATOR_IN_2_62
974# define GLIB_AVAILABLE_TYPE_IN_2_62
975#endif
976
977#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_64
978# define GLIB_DEPRECATED_IN_2_64 GLIB_DEPRECATED
979# define GLIB_DEPRECATED_IN_2_64_FOR(f) GLIB_DEPRECATED_FOR(f)
980# define GLIB_DEPRECATED_MACRO_IN_2_64 GLIB_DEPRECATED_MACRO
981# define GLIB_DEPRECATED_MACRO_IN_2_64_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
982# define GLIB_DEPRECATED_ENUMERATOR_IN_2_64 GLIB_DEPRECATED_ENUMERATOR
983# define GLIB_DEPRECATED_ENUMERATOR_IN_2_64_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
984# define GLIB_DEPRECATED_TYPE_IN_2_64 GLIB_DEPRECATED_TYPE
985# define GLIB_DEPRECATED_TYPE_IN_2_64_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
986#else
987# define GLIB_DEPRECATED_IN_2_64 _GLIB_EXTERN
988# define GLIB_DEPRECATED_IN_2_64_FOR(f) _GLIB_EXTERN
989# define GLIB_DEPRECATED_MACRO_IN_2_64
990# define GLIB_DEPRECATED_MACRO_IN_2_64_FOR(f)
991# define GLIB_DEPRECATED_ENUMERATOR_IN_2_64
992# define GLIB_DEPRECATED_ENUMERATOR_IN_2_64_FOR(f)
993# define GLIB_DEPRECATED_TYPE_IN_2_64
994# define GLIB_DEPRECATED_TYPE_IN_2_64_FOR(f)
995#endif
996
997#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_64
998# define GLIB_AVAILABLE_IN_2_64 GLIB_UNAVAILABLE(2, 64)
999# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_64 GLIB_UNAVAILABLE_STATIC_INLINE(2, 64)
1000# define GLIB_AVAILABLE_MACRO_IN_2_64 GLIB_UNAVAILABLE_MACRO(2, 64)
1001# define GLIB_AVAILABLE_ENUMERATOR_IN_2_64 GLIB_UNAVAILABLE_ENUMERATOR(2, 64)
1002# define GLIB_AVAILABLE_TYPE_IN_2_64 GLIB_UNAVAILABLE_TYPE(2, 64)
1003#else
1004# define GLIB_AVAILABLE_IN_2_64 _GLIB_EXTERN
1005# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_64
1006# define GLIB_AVAILABLE_MACRO_IN_2_64
1007# define GLIB_AVAILABLE_ENUMERATOR_IN_2_64
1008# define GLIB_AVAILABLE_TYPE_IN_2_64
1009#endif
1010
1011#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_66
1012# define GLIB_DEPRECATED_IN_2_66 GLIB_DEPRECATED
1013# define GLIB_DEPRECATED_IN_2_66_FOR(f) GLIB_DEPRECATED_FOR(f)
1014# define GLIB_DEPRECATED_MACRO_IN_2_66 GLIB_DEPRECATED_MACRO
1015# define GLIB_DEPRECATED_MACRO_IN_2_66_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
1016# define GLIB_DEPRECATED_ENUMERATOR_IN_2_66 GLIB_DEPRECATED_ENUMERATOR
1017# define GLIB_DEPRECATED_ENUMERATOR_IN_2_66_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
1018# define GLIB_DEPRECATED_TYPE_IN_2_66 GLIB_DEPRECATED_TYPE
1019# define GLIB_DEPRECATED_TYPE_IN_2_66_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
1020#else
1021# define GLIB_DEPRECATED_IN_2_66 _GLIB_EXTERN
1022# define GLIB_DEPRECATED_IN_2_66_FOR(f) _GLIB_EXTERN
1023# define GLIB_DEPRECATED_MACRO_IN_2_66
1024# define GLIB_DEPRECATED_MACRO_IN_2_66_FOR(f)
1025# define GLIB_DEPRECATED_ENUMERATOR_IN_2_66
1026# define GLIB_DEPRECATED_ENUMERATOR_IN_2_66_FOR(f)
1027# define GLIB_DEPRECATED_TYPE_IN_2_66
1028# define GLIB_DEPRECATED_TYPE_IN_2_66_FOR(f)
1029#endif
1030
1031#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_66
1032# define GLIB_AVAILABLE_IN_2_66 GLIB_UNAVAILABLE(2, 66)
1033# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_66 GLIB_UNAVAILABLE_STATIC_INLINE(2, 66)
1034# define GLIB_AVAILABLE_MACRO_IN_2_66 GLIB_UNAVAILABLE_MACRO(2, 66)
1035# define GLIB_AVAILABLE_ENUMERATOR_IN_2_66 GLIB_UNAVAILABLE_ENUMERATOR(2, 66)
1036# define GLIB_AVAILABLE_TYPE_IN_2_66 GLIB_UNAVAILABLE_TYPE(2, 66)
1037#else
1038# define GLIB_AVAILABLE_IN_2_66 _GLIB_EXTERN
1039# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_66
1040# define GLIB_AVAILABLE_MACRO_IN_2_66
1041# define GLIB_AVAILABLE_ENUMERATOR_IN_2_66
1042# define GLIB_AVAILABLE_TYPE_IN_2_66
1043#endif
1044
1045#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_68
1046# define GLIB_DEPRECATED_IN_2_68 GLIB_DEPRECATED
1047# define GLIB_DEPRECATED_IN_2_68_FOR(f) GLIB_DEPRECATED_FOR(f)
1048# define GLIB_DEPRECATED_MACRO_IN_2_68 GLIB_DEPRECATED_MACRO
1049# define GLIB_DEPRECATED_MACRO_IN_2_68_FOR(f) GLIB_DEPRECATED_MACRO_FOR(f)
1050# define GLIB_DEPRECATED_ENUMERATOR_IN_2_68 GLIB_DEPRECATED_ENUMERATOR
1051# define GLIB_DEPRECATED_ENUMERATOR_IN_2_68_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR(f)
1052# define GLIB_DEPRECATED_TYPE_IN_2_68 GLIB_DEPRECATED_TYPE
1053# define GLIB_DEPRECATED_TYPE_IN_2_68_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f)
1054#else
1055# define GLIB_DEPRECATED_IN_2_68 _GLIB_EXTERN
1056# define GLIB_DEPRECATED_IN_2_68_FOR(f) _GLIB_EXTERN
1057# define GLIB_DEPRECATED_MACRO_IN_2_68
1058# define GLIB_DEPRECATED_MACRO_IN_2_68_FOR(f)
1059# define GLIB_DEPRECATED_ENUMERATOR_IN_2_68
1060# define GLIB_DEPRECATED_ENUMERATOR_IN_2_68_FOR(f)
1061# define GLIB_DEPRECATED_TYPE_IN_2_68
1062# define GLIB_DEPRECATED_TYPE_IN_2_68_FOR(f)
1063#endif
1064
1065#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_68
1066# define GLIB_AVAILABLE_IN_2_68 GLIB_UNAVAILABLE(2, 68)
1067# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_68 GLIB_UNAVAILABLE_STATIC_INLINE(2, 68)
1068# define GLIB_AVAILABLE_MACRO_IN_2_68 GLIB_UNAVAILABLE_MACRO(2, 68)
1069# define GLIB_AVAILABLE_ENUMERATOR_IN_2_68 GLIB_UNAVAILABLE_ENUMERATOR(2, 68)
1070# define GLIB_AVAILABLE_TYPE_IN_2_68 GLIB_UNAVAILABLE_TYPE(2, 68)
1071#else
1072# define GLIB_AVAILABLE_IN_2_68 _GLIB_EXTERN
1073# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_68
1074# define GLIB_AVAILABLE_MACRO_IN_2_68
1075# define GLIB_AVAILABLE_ENUMERATOR_IN_2_68
1076# define GLIB_AVAILABLE_TYPE_IN_2_68
1077#endif
1078
1079#endif /* __G_VERSION_MACROS_H__ */
1080

source code of gtk/subprojects/glib/glib/gversionmacros.h