forked from Mirrors/flatpak-builder
lib: Fix build with older glib
parent
a66da8e53c
commit
ca06b3e66f
|
@ -1,3 +1,7 @@
|
|||
#include "config.h"
|
||||
|
||||
#include "libglnx/libglnx.h"
|
||||
|
||||
#include <xdg-app.h>
|
||||
|
||||
int
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/*** BEGIN file-header ***/
|
||||
#include "config.h"
|
||||
#include <xdg-app-utils.h>
|
||||
#include <xdg-app-ref.h>
|
||||
#include <xdg-app-enum-types.h>
|
||||
#include <gio/gio.h>
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include "xdg-app-utils.h"
|
||||
#include "xdg-app-installation.h"
|
||||
#include "xdg-app-installed-ref-private.h"
|
||||
#include "xdg-app-remote-private.h"
|
||||
#include "xdg-app-enum-types.h"
|
||||
#include "xdg-app-dir.h"
|
||||
#include "xdg-app-utils.h"
|
||||
|
||||
typedef struct _XdgAppInstallationPrivate XdgAppInstallationPrivate;
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ typedef struct {
|
|||
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 43, 4)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstallation, g_object_uninstallation)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstallation, g_object_unref)
|
||||
#endif
|
||||
|
||||
XDG_APP_EXTERN XdgAppInstallation *xdg_app_installation_new_system (void);
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "xdg-app-utils.h"
|
||||
#include "xdg-app-installed-ref.h"
|
||||
#include "xdg-app-enum-types.h"
|
||||
#include "xdg-app-utils.h"
|
||||
#include "xdg-app-run.h"
|
||||
#include "xdg-app-dir.h"
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include "xdg-app-utils.h"
|
||||
#include "xdg-app-ref.h"
|
||||
#include "xdg-app-enum-types.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "xdg-app-utils.h"
|
||||
#include "xdg-app-remote-ref-private.h"
|
||||
#include "xdg-app-remote-ref.h"
|
||||
#include "xdg-app-enum-types.h"
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include "xdg-app-utils.h"
|
||||
#include "xdg-app-remote-private.h"
|
||||
#include "xdg-app-remote-ref-private.h"
|
||||
#include "xdg-app-enum-types.h"
|
||||
#include "xdg-app-utils.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ typedef struct {
|
|||
} XdgAppRemoteClass;
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 43, 4)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppRemote, g_object_unremote)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppRemote, g_object_unref)
|
||||
#endif
|
||||
|
||||
XDG_APP_EXTERN const char * xdg_app_remote_get_name (XdgAppRemote *self);
|
||||
|
|
Loading…
Reference in New Issue