Add GLIB_VERSION_2_36 and related

This commit is contained in:
Dan Winship 2012-09-05 09:44:24 -04:00
parent a8a416181c
commit eb2f5c1e0f
2 changed files with 26 additions and 0 deletions

View File

@ -118,6 +118,8 @@ GLIB_VERSION_2_26
GLIB_VERSION_2_28
GLIB_VERSION_2_30
GLIB_VERSION_2_32
GLIB_VERSION_2_34
GLIB_VERSION_2_36
GLIB_VERSION_MIN_REQUIRED
GLIB_VERSION_MAX_ALLOWED
GLIB_DISABLE_DEPRECATION_WARNINGS

View File

@ -87,6 +87,16 @@
*/
#define GLIB_VERSION_2_34 (G_ENCODE_VERSION (2, 34))
/**
* GLIB_VERSION_2_36:
*
* A macro that evaluates to the 2.36 version of GLib, in a format
* that can be used by the C pre-processor.
*
* Since: 2.36
*/
#define GLIB_VERSION_2_36 (G_ENCODE_VERSION (2, 36))
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/
@ -247,4 +257,18 @@
# define GLIB_AVAILABLE_IN_2_34
#endif
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_36
# define GLIB_DEPRECATED_IN_2_36 GLIB_DEPRECATED
# define GLIB_DEPRECATED_IN_2_36_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
# define GLIB_DEPRECATED_IN_2_36
# define GLIB_DEPRECATED_IN_2_36_FOR(f)
#endif
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_36
# define GLIB_AVAILABLE_IN_2_36 GLIB_UNAVAILABLE(2, 36)
#else
# define GLIB_AVAILABLE_IN_2_36
#endif
#endif /* __G_VERSION_MACROS_H__ */