diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-06 04:14:22 +0000 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 3daf2e03d34ed2c4ab580361673f40f5827bed69 (patch) | |
tree | 10ca03a42ef68296c5d720ab298143a7c6f0acc9 /src | |
parent | 31aa47522a0e644289ab606236fd5ccb505f9c54 (diff) |
Add support for Haiku
Diffstat (limited to 'src')
-rw-r--r-- | src/FileUtil.cpp | 2 | ||||
-rw-r--r-- | src/Platform.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index ae24996..4485878 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -16,7 +16,7 @@ using namespace std; -#if OS_TYPE == OS_TYPE_OPENBSD +#if OS_TYPE == OS_TYPE_OPENBSD || OS_TYPE == OS_TYPE_HAIKU #define stat64 stat #endif diff --git a/src/Platform.cpp b/src/Platform.cpp index 2df019c..9b02ca5 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -30,6 +30,9 @@ namespace sibs case PLATFORM_OPENBSD: return "openbsd"; case PLATFORM_OPENBSD32: return "openbsd32"; case PLATFORM_OPENBSD64: return "openbsd64"; + case PLATFORM_HAIKU: return "haiku"; + case PLATFORM_HAIKU32: return "haiku32"; + case PLATFORM_HAIKU64: return "haiku64"; default: return nullptr; } } @@ -46,4 +49,4 @@ namespace sibs { return a & b; } -}
\ No newline at end of file +} |