Skip to content

Commit

Permalink
darwin renaming should starts with a _
Browse files Browse the repository at this point in the history
  • Loading branch information
trcrsired committed Jul 29, 2024
1 parent 5a52bfa commit fb4296b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/fast_io_hosted/timeutil/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ namespace fast_io
namespace posix
{
#if !defined(_WIN32) && !defined(__AVR__) && !defined(__MSDOS__)
#ifdef __DARWIN_C_LEVEL
extern int libc_clock_getres(clockid_t clk_id, struct timespec *tp) noexcept __asm__("_clock_getres");
extern int libc_clock_settime(clockid_t clk_id, struct timespec const *tp) noexcept __asm__("_clock_settime");
extern int libc_clock_gettime(clockid_t clk_id, struct timespec *tp) noexcept __asm__("_clock_gettime");
#else
extern int libc_clock_getres(clockid_t clk_id, struct timespec *tp) noexcept __asm__("clock_getres");
extern int libc_clock_settime(clockid_t clk_id, struct timespec const *tp) noexcept __asm__("clock_settime");
extern int libc_clock_gettime(clockid_t clk_id, struct timespec *tp) noexcept __asm__("clock_gettime");
#endif
#elif defined(__MSDOS__)
struct tm *libc_localtime_r(::std::time_t const *timep, struct tm *result) noexcept
#ifdef __MSDOS__
Expand Down

0 comments on commit fb4296b

Please sign in to comment.