diff options
Diffstat (limited to 'libnm-util')
-rw-r--r-- | libnm-util/nm-version.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libnm-util/nm-version.h b/libnm-util/nm-version.h index d4c66ea011..7173bc6ba3 100644 --- a/libnm-util/nm-version.h +++ b/libnm-util/nm-version.h @@ -132,4 +132,18 @@ # define NM_AVAILABLE_IN_1_8 #endif +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_10 +# define NM_DEPRECATED_IN_1_10 G_DEPRECATED +# define NM_DEPRECATED_IN_1_10_FOR(f) G_DEPRECATED_FOR(f) +#else +# define NM_DEPRECATED_IN_1_10 +# define NM_DEPRECATED_IN_1_10_FOR(f) +#endif + +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_10 +# define NM_AVAILABLE_IN_1_10 G_UNAVAILABLE(1,10) +#else +# define NM_AVAILABLE_IN_1_10 +#endif + #endif /* NM_VERSION_H */ |