diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ModemManager-compat.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h index 6d65d500..974b69bf 100644 --- a/include/ModemManager-compat.h +++ b/include/ModemManager-compat.h @@ -20,8 +20,6 @@ #error "Only <ModemManager.h> can be included directly." #endif -#include <glib.h> - #include <ModemManager-enums.h> #ifndef MM_DISABLE_DEPRECATED @@ -35,8 +33,15 @@ * avoid unnecessary API/ABI breaks. */ +/* deprecated attribute support since gcc 3.1 */ +#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) +# define MM_DEPRECATED __attribute__((__deprecated__)) +#else +# define MM_DEPRECATED +#endif + /* The following type exists just so that we can get deprecation warnings */ -G_DEPRECATED +MM_DEPRECATED typedef int MMModemBandDeprecated; /** |