mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
glib: Add 2.48 availibity macros
https://bugzilla.gnome.org/show_bug.cgi?id=755766
This commit is contained in:
parent
43e8bfca0c
commit
b36b4941a6
@ -127,6 +127,7 @@ GLIB_VERSION_2_40
|
||||
GLIB_VERSION_2_42
|
||||
GLIB_VERSION_2_44
|
||||
GLIB_VERSION_2_46
|
||||
GLIB_VERSION_2_48
|
||||
GLIB_VERSION_MIN_REQUIRED
|
||||
GLIB_VERSION_MAX_ALLOWED
|
||||
GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||
@ -145,6 +146,7 @@ GLIB_AVAILABLE_IN_2_40
|
||||
GLIB_AVAILABLE_IN_2_42
|
||||
GLIB_AVAILABLE_IN_2_44
|
||||
GLIB_AVAILABLE_IN_2_46
|
||||
GLIB_AVAILABLE_IN_2_48
|
||||
GLIB_DEPRECATED_IN_2_26
|
||||
GLIB_DEPRECATED_IN_2_26_FOR
|
||||
GLIB_DEPRECATED_IN_2_28
|
||||
@ -167,6 +169,8 @@ GLIB_DEPRECATED_IN_2_44
|
||||
GLIB_DEPRECATED_IN_2_44_FOR
|
||||
GLIB_DEPRECATED_IN_2_46
|
||||
GLIB_DEPRECATED_IN_2_46_FOR
|
||||
GLIB_DEPRECATED_IN_2_48
|
||||
GLIB_DEPRECATED_IN_2_48_FOR
|
||||
GLIB_VERSION_CUR_STABLE
|
||||
GLIB_VERSION_PREV_STABLE
|
||||
</SECTION>
|
||||
|
@ -145,6 +145,16 @@
|
||||
*/
|
||||
#define GLIB_VERSION_2_46 (G_ENCODE_VERSION (2, 46))
|
||||
|
||||
/**
|
||||
* GLIB_VERSION_2_48:
|
||||
*
|
||||
* A macro that evaluates to the 2.48 version of GLib, in a format
|
||||
* that can be used by the C pre-processor.
|
||||
*
|
||||
* Since: 2.48
|
||||
*/
|
||||
#define GLIB_VERSION_2_48 (G_ENCODE_VERSION (2, 48))
|
||||
|
||||
/* evaluates to the current stable version; for development cycles,
|
||||
* this means the next stable target
|
||||
*/
|
||||
@ -390,4 +400,19 @@
|
||||
# define GLIB_AVAILABLE_IN_2_46 _GLIB_EXTERN
|
||||
#endif
|
||||
|
||||
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_48
|
||||
# define GLIB_DEPRECATED_IN_2_48 GLIB_DEPRECATED
|
||||
# define GLIB_DEPRECATED_IN_2_48_FOR(f) GLIB_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define GLIB_DEPRECATED_IN_2_48 _GLIB_EXTERN
|
||||
# define GLIB_DEPRECATED_IN_2_48_FOR(f) _GLIB_EXTERN
|
||||
#endif
|
||||
|
||||
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_48
|
||||
# define GLIB_AVAILABLE_IN_2_48 GLIB_UNAVAILABLE(2, 48)
|
||||
#else
|
||||
# define GLIB_AVAILABLE_IN_2_48 _GLIB_EXTERN
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __G_VERSION_MACROS_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user