mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
Add version macros for 4.2
These will be needed for adding new API.
This commit is contained in:
parent
ee43a6a603
commit
cbaad3dbd9
@ -78,6 +78,14 @@
|
|||||||
*/
|
*/
|
||||||
#define GDK_VERSION_4_0 (G_ENCODE_VERSION (4, 0))
|
#define GDK_VERSION_4_0 (G_ENCODE_VERSION (4, 0))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GDK_VERSION_4_2:
|
||||||
|
*
|
||||||
|
* A macro that evaluates to the 4.2 version of GDK, in a format
|
||||||
|
* that can be used by the C pre-processor.
|
||||||
|
*/
|
||||||
|
#define GDK_VERSION_4_2 (G_ENCODE_VERSION (4, 2))
|
||||||
|
|
||||||
|
|
||||||
/* evaluates to the current stable version; for development cycles,
|
/* evaluates to the current stable version; for development cycles,
|
||||||
* this means the next stable target, with a hard backstop to the
|
* this means the next stable target, with a hard backstop to the
|
||||||
@ -175,4 +183,19 @@
|
|||||||
# define GDK_DEPRECATED_IN_4_0_FOR(f) _GDK_EXTERN
|
# define GDK_DEPRECATED_IN_4_0_FOR(f) _GDK_EXTERN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_2
|
||||||
|
# define GDK_AVAILABLE_IN_4_2 GDK_UNAVAILABLE(4, 2)
|
||||||
|
#else
|
||||||
|
# define GDK_AVAILABLE_IN_4_2 _GDK_EXTERN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_2
|
||||||
|
# define GDK_DEPRECATED_IN_4_2 GDK_DEPRECATED
|
||||||
|
# define GDK_DEPRECATED_IN_4_2_FOR(f) GDK_DEPRECATED_FOR(f)
|
||||||
|
#else
|
||||||
|
# define GDK_DEPRECATED_IN_4_2 _GDK_EXTERN
|
||||||
|
# define GDK_DEPRECATED_IN_4_2_FOR(f) _GDK_EXTERN
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __GDK_VERSION_MACROS_H__ */
|
#endif /* __GDK_VERSION_MACROS_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user