aboutsummaryrefslogtreecommitdiff
path: root/include/Platform.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-06 04:14:22 +0000
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit3daf2e03d34ed2c4ab580361673f40f5827bed69 (patch)
tree10ca03a42ef68296c5d720ab298143a7c6f0acc9 /include/Platform.hpp
parent31aa47522a0e644289ab606236fd5ccb505f9c54 (diff)
Add support for Haiku
Diffstat (limited to 'include/Platform.hpp')
-rw-r--r--include/Platform.hpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/Platform.hpp b/include/Platform.hpp
index 74b3a3d..ffe7038 100644
--- a/include/Platform.hpp
+++ b/include/Platform.hpp
@@ -27,7 +27,11 @@ namespace sibs
PLATFORM_BSD = 1 << 10,
PLATFORM_OPENBSD = 1 << 11 | PLATFORM_BSD,
PLATFORM_OPENBSD32 = 1 << 12 | PLATFORM_OPENBSD,
- PLATFORM_OPENBSD64 = 1 << 13 | PLATFORM_OPENBSD
+ PLATFORM_OPENBSD64 = 1 << 13 | PLATFORM_OPENBSD,
+
+ PLATFORM_HAIKU = 1 << 20,
+ PLATFORM_HAIKU32 = 1 << 21 | PLATFORM_HAIKU,
+ PLATFORM_HAIKU64 = 1 << 22 | PLATFORM_HAIKU
};
const StringViewMap<Platform> PLATFORM_BY_NAME = {
@@ -44,11 +48,14 @@ namespace sibs
{ "bsd", PLATFORM_BSD },
{ "openbsd", PLATFORM_OPENBSD },
{ "openbsd32", PLATFORM_OPENBSD32 },
- { "openbsd64", PLATFORM_OPENBSD64 }
+ { "openbsd64", PLATFORM_OPENBSD64 },
+ { "haiku", PLATFORM_HAIKU },
+ { "haiku32", PLATFORM_HAIKU32 },
+ { "haiku64", PLATFORM_HAIKU64 },
};
bool containsPlatform(const std::vector<Platform> &platforms, Platform platform);
const char* asString(Platform platform);
Platform getPlatformByName(StringView name);
bool isSamePlatformFamily(Platform a, Platform b);
-} \ No newline at end of file
+}