From 3b134d52aae9513b8277757f6f3dc44e61b6c0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 23 Nov 2022 20:20:35 +0100 Subject: [PATCH] Distinguish some more OSs --- src/common/downloader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/downloader.cpp b/src/common/downloader.cpp index 17dd905a..4890dec2 100644 --- a/src/common/downloader.cpp +++ b/src/common/downloader.cpp @@ -7,12 +7,18 @@ #include "downloader.h" -#if defined(Q_OS_LINUX) +#if defined(Q_OS_ANDROID) +#define PLATFORM_STR "Android" +#elif defined(Q_OS_LINUX) #define PLATFORM_STR "Linux" #elif defined(Q_OS_WIN32) #define PLATFORM_STR "Windows" #elif defined(Q_OS_MAC) #define PLATFORM_STR "OS X" +#elif defined(Q_OS_BSD4) +#define PLATFORM_STR "BSD" +#elif defined(Q_OS_HAIKU) +#define PLATFORM_STR "Haiku" #else #define PLATFORM_STR "Unknown" #endif