mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
LibC: Make difftime a function
The previous define led to issues when compiling some ports, namely zsh 5.8.
This commit is contained in:
parent
9545ed1c21
commit
5245277369
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue