diff options
Diffstat (limited to 'libnm-core/nm-version.h')
| -rw-r--r-- | libnm-core/nm-version.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index aa92c3f8..c6cd2892 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -23,7 +23,7 @@ #include <glib.h> -#include <nm-version-macros.h> +#include "nm-version-macros.h" /* Deprecation / Availability macros */ @@ -118,4 +118,18 @@ # define NM_AVAILABLE_IN_1_6 #endif +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_8 +# define NM_DEPRECATED_IN_1_8 G_DEPRECATED +# define NM_DEPRECATED_IN_1_8_FOR(f) G_DEPRECATED_FOR(f) +#else +# define NM_DEPRECATED_IN_1_8 +# define NM_DEPRECATED_IN_1_8_FOR(f) +#endif + +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_8 +# define NM_AVAILABLE_IN_1_8 G_UNAVAILABLE(1,8) +#else +# define NM_AVAILABLE_IN_1_8 +#endif + #endif /* NM_VERSION_H */ |