updated build system

This commit is contained in:
2024-10-31 14:12:32 -05:00
parent 2f8f38b6a2
commit db1320dd3a
4 changed files with 44 additions and 43 deletions

View File

@ -31,8 +31,8 @@ using passwd_callback_t = std::function<void(struct passwd *pass)>;
#if defined(__APPLE__)
template <typename thread_t>
[[nodiscard]] auto
convert_to_uint64(const thread_t *thread_ptr) -> std::uint64_t;
[[nodiscard]] auto convert_to_uint64(const thread_t *thread_ptr)
-> std::uint64_t;
#else // !defined(__APPLE__)
[[nodiscard]] auto convert_to_uint64(const pthread_t &thread) -> std::uint64_t;
#endif // defined(__APPLE__)
@ -45,14 +45,14 @@ convert_to_uint64(const thread_t *thread_ptr) -> std::uint64_t;
void set_last_error_code(int error_code);
[[nodiscard]] auto use_getpwuid(uid_t uid,
passwd_callback_t callback) -> utils::result;
[[nodiscard]] auto use_getpwuid(uid_t uid, passwd_callback_t callback)
-> utils::result;
// template implementations
#if defined(__APPLE__)
template <typename t>
[[nodiscard]] auto
convert_to_uint64(const thread_t *thread_ptr) -> std::uint64_t {
[[nodiscard]] auto convert_to_uint64(const thread_t *thread_ptr)
-> std::uint64_t {
return static_cast<std::uint64_t>(
reinterpret_cast<std::uintptr_t>(thread_ptr));
}