[gnome-builder/wip/gtk4-port: 992/1774] libide/core: ignore flatpak check on non-Linux




commit d6f68fb725aad3664254b0ca8910daa0ab047dd5
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 12 13:42:40 2022 -0700

    libide/core: ignore flatpak check on non-Linux

 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 ac3bfabd3..e9b28c6bd 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_3_32
 const gchar    *ide_gettext              (const gchar *message);


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