LibC: Make difftime a function

The previous define led to issues when compiling some ports, namely zsh
5.8.
This commit is contained in:
Stephen Gregoratto 2020-10-13 22:59:38 +11:00 committed by Andreas Kling
commit 5245277369
Notes: sideshowbarker 2024-07-19 01:54:00 +09:00
2 changed files with 5 additions and 2 deletions

View file

@ -362,4 +362,9 @@ int clock_getres(clockid_t, struct timespec*)
{
ASSERT_NOT_REACHED();
}
double difftime(time_t t1, time_t t0)
{
return (double)(t1 - t0);
}
}