[sysprof] perf: use #ifdef not #if
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] perf: use #ifdef not #if
- Date: Sun, 17 Apr 2016 00:08:44 +0000 (UTC)
commit 74d88245c5b67173fc928a7a6b48a6ba91ccb37d
Author: Christian Hergert <christian hergert me>
Date: Sat Apr 16 17:08:38 2016 -0700
perf: use #ifdef not #if
This is conditionally added to CFLAGS, so make sure we use #ifdef instead
of #if.
lib/sp-perf-counter.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/sp-perf-counter.c b/lib/sp-perf-counter.c
index 11c9ae2..a6fad7a 100644
--- a/lib/sp-perf-counter.c
+++ b/lib/sp-perf-counter.c
@@ -122,7 +122,7 @@ G_DEFINE_BOXED_TYPE (SpPerfCounter,
(GBoxedCopyFunc)sp_perf_counter_ref,
(GBoxedFreeFunc)sp_perf_counter_unref)
-#if ENABLE_SYSPROFD
+#ifdef ENABLE_SYSPROFD
static GDBusConnection *shared_conn;
#endif
@@ -596,7 +596,7 @@ sp_perf_counter_authorize_async (GCancellable *cancellable,
task = g_task_new (NULL, cancellable, callback, user_data);
-#if ENABLE_SYSPROFD
+#ifdef ENABLE_SYSPROFD
g_bus_get (G_BUS_TYPE_SYSTEM,
cancellable,
sp_perf_counter_get_bus_cb,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]