Detect FreeBSD in HttpClient, UpdateCheck, and version.h. We need to combine all of these. Ugh.

This commit is contained in:
casey langen 2019-01-27 01:38:13 -08:00
parent 210209997f
commit d91bb6f861
3 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,8 @@ namespace musik { namespace core { namespace sdk {
static const std::string PLATFORM = "win32"; static const std::string PLATFORM = "win32";
#elif defined __APPLE__ #elif defined __APPLE__
static const std::string PLATFORM = "macos"; static const std::string PLATFORM = "macos";
#elif defined __FreeBSD__
static const std::string PLATFORM = "freebsd";
#else #else
static const std::string PLATFORM = "linux"; static const std::string PLATFORM = "linux";
#endif #endif

View File

@ -64,6 +64,8 @@ static const std::string URL = "url";
static const std::string PLATFORM = "win32"; static const std::string PLATFORM = "win32";
#elif defined __APPLE__ #elif defined __APPLE__
static const std::string PLATFORM = "macos"; static const std::string PLATFORM = "macos";
#elif defined __FreeBSD__
static const std::string PLATFORM = "freebsd";
#else #else
static const std::string PLATFORM = "linux"; static const std::string PLATFORM = "linux";
#endif #endif

View File

@ -14,6 +14,8 @@ namespace musik {
static const std::string PLATFORM = "win32"; static const std::string PLATFORM = "win32";
#elif defined __APPLE__ #elif defined __APPLE__
static const std::string PLATFORM = "macos"; static const std::string PLATFORM = "macos";
#elif defined __FreeBSD__
static const std::string PLATFORM = "freebsd";
#else #else
static const std::string PLATFORM = "linux"; static const std::string PLATFORM = "linux";
#endif #endif