[gnome-software/gnome-40] packagekit: Change #if to #ifdef to avoid a -Wundef warning



commit 2992639a06cbdd9c8e0a49693dd9c73ababab4d5
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri May 28 11:48:08 2021 +0100

    packagekit: Change #if to #ifdef to avoid a -Wundef warning
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 plugins/packagekit/packagekit-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/packagekit/packagekit-common.c b/plugins/packagekit/packagekit-common.c
index bca5bc31c..c644ff993 100644
--- a/plugins/packagekit/packagekit-common.c
+++ b/plugins/packagekit/packagekit-common.c
@@ -484,7 +484,7 @@ gs_plugin_packagekit_refine_details_app (GsPlugin *plugin,
         * repository, on the order of 400 or 700 apps */
        source_ids = gs_app_get_source_ids (app);
        for (j = 0; j < source_ids->len; j++) {
-               #if HAVE_PK_DETAILS_GET_DOWNLOAD_SIZE
+               #ifdef HAVE_PK_DETAILS_GET_DOWNLOAD_SIZE
                guint64 download_sz;
                #endif
                package_id = g_ptr_array_index (source_ids, j);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]