Define 3.10 version macros

This commit is contained in:
Matthias Clasen 2013-03-17 03:07:57 -04:00
parent 3bc8b2dea4
commit 2ca30bf8e8

View File

@ -100,6 +100,16 @@
*/ */
#define GDK_VERSION_3_8 (G_ENCODE_VERSION (3, 8)) #define GDK_VERSION_3_8 (G_ENCODE_VERSION (3, 8))
/**
* GDK_VERSION_3_10:
*
* A macro that evaluates to the 3.10 version of GDK, in a format
* that can be used by the C pre-processor.
*
* Since: 3.10
*/
#define GDK_VERSION_3_10 (G_ENCODE_VERSION (3, 10))
/* 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
@ -241,4 +251,18 @@
# define GDK_AVAILABLE_IN_3_8 # define GDK_AVAILABLE_IN_3_8
#endif #endif
#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_10
# define GDK_DEPRECATED_IN_3_10 GDK_DEPRECATED
# define GDK_DEPRECATED_IN_3_10_FOR(f) GDK_DEPRECATED_FOR(f)
#else
# define GDK_DEPRECATED_IN_3_10
# define GDK_DEPRECATED_IN_3_10_FOR(f)
#endif
#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_10
# define GDK_AVAILABLE_IN_3_10 GDK_UNAVAILABLE(3, 10)
#else
# define GDK_AVAILABLE_IN_3_10
#endif
#endif /* __GDK_VERSION_MACROS_H__ */ #endif /* __GDK_VERSION_MACROS_H__ */