diff options
Diffstat (limited to 'libnm-core/nm-version.h')
-rw-r--r-- | libnm-core/nm-version.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index 0ac2955baa..189efe8249 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -202,4 +202,18 @@ # define NM_AVAILABLE_IN_1_18 #endif +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_20 +# define NM_DEPRECATED_IN_1_20 G_DEPRECATED +# define NM_DEPRECATED_IN_1_20_FOR(f) G_DEPRECATED_FOR(f) +#else +# define NM_DEPRECATED_IN_1_20 +# define NM_DEPRECATED_IN_1_20_FOR(f) +#endif + +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_20 +# define NM_AVAILABLE_IN_1_20 G_UNAVAILABLE(1,20) +#else +# define NM_AVAILABLE_IN_1_20 +#endif + #endif /* NM_VERSION_H */ |