mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Add version macros for 2.34
This marks the start of the new development cycle, and opens the window for API additions. https://bugzilla.gnome.org/show_bug.cgi?id=673659
This commit is contained in:
parent
55bbb9fc69
commit
79013634ab
@ -77,6 +77,16 @@
|
|||||||
*/
|
*/
|
||||||
#define GLIB_VERSION_2_32 (G_ENCODE_VERSION (2, 32))
|
#define GLIB_VERSION_2_32 (G_ENCODE_VERSION (2, 32))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GLIB_VERSION_2_34:
|
||||||
|
*
|
||||||
|
* A macro that evaluates to the 2.34 version of GLib, in a format
|
||||||
|
* that can be used by the C pre-processor.
|
||||||
|
*
|
||||||
|
* Since: 2.34
|
||||||
|
*/
|
||||||
|
#define GLIB_VERSION_2_34 (G_ENCODE_VERSION (2, 34))
|
||||||
|
|
||||||
/* evaluates to the current stable version; for development cycles,
|
/* evaluates to the current stable version; for development cycles,
|
||||||
* this means the next stable target
|
* this means the next stable target
|
||||||
*/
|
*/
|
||||||
@ -209,4 +219,18 @@
|
|||||||
# define GLIB_AVAILABLE_IN_2_32
|
# define GLIB_AVAILABLE_IN_2_32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_34
|
||||||
|
# define GLIB_DEPRECATED_IN_2_34 GLIB_DEPRECATED
|
||||||
|
# define GLIB_DEPRECATED_IN_2_34_FOR(f) GLIB_DEPRECATED_FOR(f)
|
||||||
|
#else
|
||||||
|
# define GLIB_DEPRECATED_IN_2_34
|
||||||
|
# define GLIB_DEPRECATED_IN_2_34_FOR(f)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_34
|
||||||
|
# define GLIB_AVAILABLE_IN_2_34 GLIB_UNAVAILABLE(2, 34)
|
||||||
|
#else
|
||||||
|
# define GLIB_AVAILABLE_IN_2_34
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __G_VERSION_MACROS_H__ */
|
#endif /* __G_VERSION_MACROS_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user