From 74d88245c5b67173fc928a7a6b48a6ba91ccb37d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 16 Apr 2016 17:08:38 -0700 Subject: [PATCH] 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sp-perf-counter.c b/lib/sp-perf-counter.c index 11c9ae21..a6fad7af 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,