From 9b3ab01fe1393f26af80a99fa9df0020df410a1c Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 31 Aug 2016 11:50:57 +0200 Subject: trivial: Fix a -Wundef compiler warning --- libappstream-builder/asb-context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c index 75d2f13..99bac7e 100644 --- a/libappstream-builder/asb-context.c +++ b/libappstream-builder/asb-context.c @@ -471,11 +471,11 @@ asb_context_add_filename (AsbContext *ctx, const gchar *filename, GError **error } /* open */ -#if HAVE_RPM +#ifdef HAVE_RPM if (g_str_has_suffix (filename, ".rpm")) pkg = asb_package_rpm_new (); #endif -#if HAVE_ALPM +#ifdef HAVE_ALPM if (g_str_has_suffix (filename, ".pkg.tar.xz")) pkg = asb_package_alpm_new (); #endif -- cgit v1.2.1