[gnome-builder] libide-core: default to 0 on non-linux builds for is_flatpak



commit 1fa3984325faade9dbc362f44592c0ea097768ac
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 11 16:35:06 2022 -0700

    libide-core: default to 0 on non-linux builds for is_flatpak

 src/libide/core/ide-global.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/core/ide-global.h b/src/libide/core/ide-global.h
index 844619d15..fd064963a 100644
--- a/src/libide/core/ide-global.h
+++ b/src/libide/core/ide-global.h
@@ -36,7 +36,11 @@ typedef enum
   IDE_PROCESS_KIND_FLATPAK = 1,
 } IdeProcessKind;
 
-#define ide_is_flatpak() (ide_get_process_kind() == IDE_PROCESS_KIND_FLATPAK)
+#ifdef __linux__
+# define ide_is_flatpak() (ide_get_process_kind() == IDE_PROCESS_KIND_FLATPAK)
+#else
+# define ide_is_flatpak() 0
+#endif
 
 IDE_AVAILABLE_IN_ALL
 const gchar    *ide_gettext              (const gchar *message);


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