updated build system
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user