[libpeas] Change the #define used for disabaling deprecated features



commit 2532cac885966fb1813fdb11e666e02c838a2c44
Author: Garrett Regier <alias301 gmail com>
Date:   Wed Jun 8 13:09:38 2011 -0700

    Change the #define used for disabaling deprecated features
    
    Otherwise when we want to deprecated API we would have to
    wrap the code in the .c files with #ifndef #endif which is bad
    because then we break ABI.

 configure.ac                           |    2 +-
 loaders/seed/peas-plugin-loader-seed.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1ef2399..1857ef0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -457,7 +457,7 @@ AC_ARG_ENABLE([deprecation],
              [enable_deprecation=$USE_MAINTAINER_MODE])
 if test "$enable_deprecation" = "yes"; then
        AC_MSG_NOTICE([disabling deprecated libpeas features])
-       AC_DEFINE([PEAS_DISABLE_DEPRECATED],[1],[Disable deprecated features])
+       AC_DEFINE([PEAS_DISABLE_DEPRECATED_FEATURES],[1],[Disable deprecated features])
 fi
 
 
diff --git a/loaders/seed/peas-plugin-loader-seed.c b/loaders/seed/peas-plugin-loader-seed.c
index e2df6df..be47883 100644
--- a/loaders/seed/peas-plugin-loader-seed.c
+++ b/loaders/seed/peas-plugin-loader-seed.c
@@ -160,7 +160,7 @@ peas_plugin_loader_seed_create_extension (PeasPluginLoader *loader,
 
   if (extension == NULL)
     {
-#ifndef PEAS_DISABLE_DEPRECATED
+#ifndef PEAS_DISABLE_DEPRECATED_FEATURES
       gchar **property_names;
 
       g_warning ("DEPRECATION WARNING: Extension '%s' in plugin '%s' is not a valid "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]