Move "#if HAVE_LIBSFDO" inside desktop-entry.h

This commit is contained in:
tokyo4j 2025-01-12 20:49:05 +09:00 committed by Hiroaki Yamamoto
parent bffdccf8dc
commit a0cf6bb068
4 changed files with 3 additions and 8 deletions

View file

@ -1,6 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_DESKTOP_ENTRY_H
#define LABWC_DESKTOP_ENTRY_H
#include "config.h"
#if HAVE_LIBSFDO
struct server;
@ -23,4 +25,5 @@ struct lab_img *desktop_entry_load_icon(
const char *desktop_entry_name_lookup(struct server *server,
const char *app_id);
#endif /* HAVE_LIBSFDO */
#endif /* LABWC_DESKTOP_ENTRY_H */

View file

@ -7,9 +7,7 @@
#include "view.h"
#include "workspaces.h"
#include "labwc.h"
#if HAVE_LIBSFDO
#include "desktop-entry.h"
#endif
#include "osd.h"
/* includes '%', terminating 's' and NULL byte, 8 is enough for %-9999s */

View file

@ -35,11 +35,7 @@
#include "config/rcxml.h"
#include "config/session.h"
#include "decorations.h"
#if HAVE_LIBSFDO
#include "desktop-entry.h"
#endif
#include "idle.h"
#include "input/keyboard.h"
#include "labwc.h"

View file

@ -10,9 +10,7 @@
#include "common/scaled-img-buffer.h"
#include "common/scene-helpers.h"
#include "common/string-helpers.h"
#if HAVE_LIBSFDO
#include "desktop-entry.h"
#endif
#include "img/img.h"
#include "labwc.h"
#include "node.h"