aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/core/defs.h')
-rw-r--r--include/osmocom/core/defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/core/defs.h b/include/osmocom/core/defs.h
index aebe9258..51ac4e51 100644
--- a/include/osmocom/core/defs.h
+++ b/include/osmocom/core/defs.h
@@ -41,6 +41,12 @@
# define OSMO_DEPRECATED(text)
#endif
+#if BUILDING_LIBOSMOCORE
+# define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE
+#else
+# define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE OSMO_DEPRECATED("For internal use inside libosmocore only.")
+#endif
+
#undef _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE
#undef _OSMO_HAS_ATTRIBUTE_DEPRECATED