Add macOS support #34
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2025-08-01 14:39:34 +02:00
parent 81c6875382
commit 039ff6ba42
4 changed files with 7 additions and 9 deletions

View File

@@ -25,11 +25,13 @@
#include "utils/collection.hpp"
namespace repertory::utils {
#if !defined(__APPLE__)
auto convert_to_uint64(const pthread_t &thread) -> std::uint64_t {
auto convert_to_uint64(pthread_t thread) -> std::uint64_t {
#if defined(__APPLE__)
return reinterpret_cast<std::uintptr_t>(thread);
#else // defined(__APPLE__)
return static_cast<std::uint64_t>(thread);
#endif // defined(__APPLE__)
}
#endif // !defined(__APPLE__)
auto get_last_error_code() -> int { return errno; }