aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/reference/api/Makefile.am2
-rw-r--r--include/ModemManager-compat.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/reference/api/Makefile.am b/docs/reference/api/Makefile.am
index 5d69fadb..7ab03165 100644
--- a/docs/reference/api/Makefile.am
+++ b/docs/reference/api/Makefile.am
@@ -18,7 +18,7 @@ DOC_MODULE = ModemManager
DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
# Extra options to supply to gtkdoc-scan
-SCAN_OPTIONS =
+SCAN_OPTIONS = --deprecated-guards="MM_DISABLE_DEPRECATED"
# The directory containing the source code.
DOC_SOURCE_DIR = $(top_srcdir)/include
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_ */