[seahorse/wip/nielsdg/fix-deb-build: 2/2] build: consistently use #ifdef for WITH_DEBUG.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/wip/nielsdg/fix-deb-build: 2/2] build: consistently use #ifdef for WITH_DEBUG.
- Date: Tue, 28 Aug 2018 16:13:04 +0000 (UTC)
commit 02e0d69bdf42bb2f093996d1b800fe293c223a24
Author: Niels De Graef <nielsdegraef gmail com>
Date: Tue Aug 28 17:30:00 2018 +0200
build: consistently use #ifdef for WITH_DEBUG.
Fixes #190
https://gitlab.gnome.org/GNOME/seahorse/issues/190
meson.build | 2 +-
pgp/seahorse-hkp-source.c | 4 ++--
pgp/seahorse-ldap-source.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 072f9f7e..bdd3c4fd 100644
--- a/meson.build
+++ b/meson.build
@@ -140,7 +140,7 @@ conf.set_quoted('EXECDIR', libexecbindir)
conf.set_quoted('LOCALEDIR', localedir)
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('G_LOG_DOMAIN', meson.project_name())
-conf.set10('WITH_DEBUG', buildtype.contains('debug'))
+conf.set('WITH_DEBUG', buildtype.contains('debug'))
conf.set10('_DEBUG', buildtype.contains('debug'))
conf.set('HAVE_STRSEP', cc.has_function('strsep'))
conf.set('WITH_PGP', with_pgp)
diff --git a/pgp/seahorse-hkp-source.c b/pgp/seahorse-hkp-source.c
index 2c46769a..1982ac84 100644
--- a/pgp/seahorse-hkp-source.c
+++ b/pgp/seahorse-hkp-source.c
@@ -114,7 +114,7 @@ static SoupSession *
create_hkp_soup_session (void)
{
SoupSession *session;
-#if WITH_DEBUG
+#ifdef WITH_DEBUG
SoupLogger *logger;
const gchar *env;
#endif
@@ -124,7 +124,7 @@ create_hkp_soup_session (void)
NULL);
-#if WITH_DEBUG
+#ifdef WITH_DEBUG
env = g_getenv ("G_MESSAGES_DEBUG");
if (env && strstr (env, "seahorse")) {
logger = soup_logger_new (SOUP_LOGGER_LOG_BODY, -1);
diff --git a/pgp/seahorse-ldap-source.c b/pgp/seahorse-ldap-source.c
index 4819c918..41a15cd6 100644
--- a/pgp/seahorse-ldap-source.c
+++ b/pgp/seahorse-ldap-source.c
@@ -125,7 +125,7 @@ get_ldap_values (LDAP *ld, LDAPMessage *entry, const char *attribute)
return (gchar**)g_array_free (array, FALSE);
}
-#if WITH_DEBUG
+#ifdef WITH_DEBUG
static void
dump_ldap_entry (LDAP *ld, LDAPMessage *res)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]