summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cairommconfig.h.in3
-rw-r--r--configure.ac1
2 files changed, 4 insertions, 0 deletions
diff --git a/cairommconfig.h.in b/cairommconfig.h.in
index f55f6d0..57fe7b2 100644
--- a/cairommconfig.h.in
+++ b/cairommconfig.h.in
@@ -1,5 +1,8 @@
/* This file is part of cairomm. */
+/* Define to omit deprecated API from the library. */
+#undef CAIROMM_DISABLE_DEPRECATED
+
/* Defined when the --enable-api-exceptions configure argument was given */
#undef CAIROMM_EXCEPTIONS_ENABLED
diff --git a/configure.ac b/configure.ac
index 64e31e1..74202d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,7 @@ MM_ARG_ENABLE_WARNINGS([CAIROMM_WXXFLAGS],
[-Wall],
[-pedantic -Wall -Wextra -Wformat-security -Wsuggest-override],
[SIGCXX])
+MM_ARG_DISABLE_DEPRECATED_API
AC_ARG_ENABLE([tests],
[AS_HELP_STRING([--enable-tests], [enable automated tests [default=no]])],