aboutsummaryrefslogtreecommitdiff
path: root/include/Platform.hpp
diff options
context:
space:
mode:
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
+}