mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
gversionmacros: add version macros for GLib 2.62
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
35db2ffe9c
commit
e7d091dec1
@ -141,6 +141,7 @@ if get_option('gtk_doc')
|
||||
'GLIB_AVAILABLE_IN_2_56',
|
||||
'GLIB_AVAILABLE_IN_2_58',
|
||||
'GLIB_AVAILABLE_IN_2_60',
|
||||
'GLIB_AVAILABLE_IN_2_62',
|
||||
'GLIB_DEPRECATED_IN_2_26',
|
||||
'GLIB_DEPRECATED_IN_2_26_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_28',
|
||||
@ -177,6 +178,8 @@ if get_option('gtk_doc')
|
||||
'GLIB_DEPRECATED_IN_2_58_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_60',
|
||||
'GLIB_DEPRECATED_IN_2_60_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_62',
|
||||
'GLIB_DEPRECATED_IN_2_62_FOR',
|
||||
]
|
||||
|
||||
# FIXME: More win32 headers were added to fix building gio-scan
|
||||
|
@ -63,6 +63,7 @@ if get_option('gtk_doc')
|
||||
'GLIB_AVAILABLE_IN_2_56',
|
||||
'GLIB_AVAILABLE_IN_2_58',
|
||||
'GLIB_AVAILABLE_IN_2_60',
|
||||
'GLIB_AVAILABLE_IN_2_62',
|
||||
'GLIB_DEPRECATED_IN_2_26',
|
||||
'GLIB_DEPRECATED_IN_2_26_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_28',
|
||||
@ -99,6 +100,8 @@ if get_option('gtk_doc')
|
||||
'GLIB_DEPRECATED_IN_2_58_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_60',
|
||||
'GLIB_DEPRECATED_IN_2_60_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_62',
|
||||
'GLIB_DEPRECATED_IN_2_62_FOR',
|
||||
]
|
||||
|
||||
docpath = join_paths(glib_datadir, 'gtk-doc', 'html')
|
||||
|
@ -33,6 +33,7 @@ if get_option('gtk_doc')
|
||||
'GLIB_AVAILABLE_IN_2_56',
|
||||
'GLIB_AVAILABLE_IN_2_58',
|
||||
'GLIB_AVAILABLE_IN_2_60',
|
||||
'GLIB_AVAILABLE_IN_2_62',
|
||||
'GLIB_DEPRECATED_IN_2_26',
|
||||
'GLIB_DEPRECATED_IN_2_26_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_28',
|
||||
@ -69,6 +70,8 @@ if get_option('gtk_doc')
|
||||
'GLIB_DEPRECATED_IN_2_58_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_60',
|
||||
'GLIB_DEPRECATED_IN_2_60_FOR',
|
||||
'GLIB_DEPRECATED_IN_2_62',
|
||||
'GLIB_DEPRECATED_IN_2_62_FOR',
|
||||
]
|
||||
|
||||
docpath = join_paths(glib_datadir, 'gtk-doc', 'html')
|
||||
|
@ -215,6 +215,16 @@
|
||||
*/
|
||||
#define GLIB_VERSION_2_60 (G_ENCODE_VERSION (2, 60))
|
||||
|
||||
/**
|
||||
* GLIB_VERSION_2_62:
|
||||
*
|
||||
* A macro that evaluates to the 2.62 version of GLib, in a format
|
||||
* that can be used by the C pre-processor.
|
||||
*
|
||||
* Since: 2.62
|
||||
*/
|
||||
#define GLIB_VERSION_2_62 (G_ENCODE_VERSION (2, 62))
|
||||
|
||||
/* evaluates to the current stable version; for development cycles,
|
||||
* this means the next stable target
|
||||
*/
|
||||
@ -558,4 +568,18 @@
|
||||
# define GLIB_AVAILABLE_IN_2_60 _GLIB_EXTERN
|
||||
#endif
|
||||
|
||||
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_62
|
||||
# define GLIB_DEPRECATED_IN_2_62 GLIB_DEPRECATED
|
||||
# define GLIB_DEPRECATED_IN_2_62_FOR(f) GLIB_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define GLIB_DEPRECATED_IN_2_62 _GLIB_EXTERN
|
||||
# define GLIB_DEPRECATED_IN_2_62_FOR(f) _GLIB_EXTERN
|
||||
#endif
|
||||
|
||||
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_62
|
||||
# define GLIB_AVAILABLE_IN_2_62 GLIB_UNAVAILABLE(2, 62)
|
||||
#else
|
||||
# define GLIB_AVAILABLE_IN_2_62 _GLIB_EXTERN
|
||||
#endif
|
||||
|
||||
#endif /* __G_VERSION_MACROS_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user