From 443a9b04671f211d93c3c64919c0ad445747fe1b Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 20 Jun 2011 12:20:39 +0100 Subject: gconf: Surround CORBA code with ifdefs --- gconf/gconf.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gconf/gconf.c b/gconf/gconf.c index 0b599446..aa75b030 100644 --- a/gconf/gconf.c +++ b/gconf/gconf.c @@ -17,7 +17,10 @@ * Boston, MA 02110-1301, USA. */ +#if HAVE_CORBA #include "GConfX.h" +#endif + #include "gconf.h" #include "gconf-internals.h" #include "gconf-sources.h" @@ -34,6 +37,7 @@ #include #include +#ifdef HAVE_CORBA /* Returns TRUE if there was an error, frees exception, sets err */ static gboolean gconf_handle_corba_exception(CORBA_Environment* ev, GError** err); /* just returns TRUE if there's an exception indicating the server is @@ -43,6 +47,7 @@ static void gconf_detach_config_server(void); /* Maximum number of times to try re-spawning the server if it's down. */ #define MAX_RETRIES 1 +#endif /* HAVE_CORBA */ /* copied from gutf8.c where it exists as a (unfortunately) non-exported function */ static gchar * @@ -109,6 +114,7 @@ gconf_key_check(const gchar* key, GError** err) return TRUE; } +#ifdef HAVE_CORBA typedef struct _CnxnTable CnxnTable; struct _GConfEngine { @@ -2636,7 +2642,8 @@ gconf_get_config_listener(void) return listener; } - +#endif /* HAVE_CORBA */ + void gconf_preinit (gpointer app, gpointer mod_info) { @@ -2971,6 +2978,7 @@ gconf_unique_key (void) return key; } +#ifdef HAVE_CORBA /* * Table of connections */ @@ -3175,6 +3183,7 @@ gconf_spawn_daemon(GError** err) else return TRUE; } +#endif /* HAVE_CORBA */ /* * Sugar functions @@ -3682,6 +3691,7 @@ gconf_engine_set_pair (GConfEngine* conf, const gchar* key, return error_checked_set(conf, key, pair, err); } +#ifdef HAVE_CORBA /* CORBA Util */ /* Set GConfError from an exception, free exception, etc. */ @@ -3776,6 +3786,7 @@ gconf_handle_corba_exception(CORBA_Environment* ev, GError** err) return TRUE; } } +#endif /* * Enumeration conversions -- cgit v1.2.1