diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-09-07 10:36:14 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-09-07 10:55:17 +0200 |
commit | f0bb6ef8564aabc51e5bd14b6486bc86068364fb (patch) | |
tree | 6e1d012b2e6da038bdedd85e1c068b2de7bc0e15 /include | |
parent | d135c56f0f1bb82f0a5e886c10932b18de149c4f (diff) |
api: add MM_DISABLE_DEPRECATED guards around deprecated symbols
When this symbol is defined, e.g. via CFLAGS, building a program that
uses the ModemManager API will fail if the program references
deprecated symbols.
For now we just use it to keep gtk-doc-scan happy and avoid
unnecessary warnings.
Diffstat (limited to 'include')
-rw-r--r-- | include/ModemManager-compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h index f0e1d938..6d65d500 100644 --- a/include/ModemManager-compat.h +++ b/include/ModemManager-compat.h @@ -24,6 +24,8 @@ #include <ModemManager-enums.h> +#ifndef MM_DISABLE_DEPRECATED + /** * SECTION:mm-compat * @title: API break replacements @@ -687,4 +689,6 @@ typedef int MMModemBandDeprecated; */ #define MM_MODEM_BAND_CDMA_BC19_US_LOWER_700 ((MMModemBandDeprecated)MM_MODEM_BAND_CDMA_BC19) +#endif /* MM_DISABLE_DEPRECATED */ + #endif /* _MODEMMANAGER_COMPAT_H_ */ |