From d91bb6f861568bd0b8e1159fffbbaae92c8813a6 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 27 Jan 2019 01:38:13 -0800 Subject: [PATCH] Detect FreeBSD in HttpClient, UpdateCheck, and version.h. We need to combine all of these. Ugh. --- src/core/sdk/HttpClient.h | 2 ++ src/musikcube/app/util/UpdateCheck.cpp | 2 ++ src/musikcube/app/version.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/core/sdk/HttpClient.h b/src/core/sdk/HttpClient.h index 2e50065e6..a605d6cc5 100644 --- a/src/core/sdk/HttpClient.h +++ b/src/core/sdk/HttpClient.h @@ -124,6 +124,8 @@ namespace musik { namespace core { namespace sdk { static const std::string PLATFORM = "win32"; #elif defined __APPLE__ static const std::string PLATFORM = "macos"; +#elif defined __FreeBSD__ + static const std::string PLATFORM = "freebsd"; #else static const std::string PLATFORM = "linux"; #endif diff --git a/src/musikcube/app/util/UpdateCheck.cpp b/src/musikcube/app/util/UpdateCheck.cpp index 368e867f9..a1d196aa4 100644 --- a/src/musikcube/app/util/UpdateCheck.cpp +++ b/src/musikcube/app/util/UpdateCheck.cpp @@ -64,6 +64,8 @@ static const std::string URL = "url"; static const std::string PLATFORM = "win32"; #elif defined __APPLE__ static const std::string PLATFORM = "macos"; +#elif defined __FreeBSD__ +static const std::string PLATFORM = "freebsd"; #else static const std::string PLATFORM = "linux"; #endif diff --git a/src/musikcube/app/version.h b/src/musikcube/app/version.h index 63848b254..6426f49ae 100644 --- a/src/musikcube/app/version.h +++ b/src/musikcube/app/version.h @@ -14,6 +14,8 @@ namespace musik { static const std::string PLATFORM = "win32"; #elif defined __APPLE__ static const std::string PLATFORM = "macos"; +#elif defined __FreeBSD__ + static const std::string PLATFORM = "freebsd"; #else static const std::string PLATFORM = "linux"; #endif