c11: Improve timespec_get to support TIME_MONOTONIC TIME_ACTIVE TIME_THREAD_ACTIVE TIME_MONOTONIC_RAW

As c11 already provided timespec_get, to avoid symbol conflict, use c23_timespec_get as the function name
and define timespec_get c23_timespec_get to achieve that

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23733>
This commit is contained in:
Yonggang Luo
2023-02-12 00:15:19 +08:00
committed by Marge Bot
parent 785ca13323
commit 66a99f619f
3 changed files with 93 additions and 14 deletions

View File

@@ -1282,7 +1282,6 @@ endforeach
functions_to_detect = {
'strtof': '',
'mkostemp': '',
'timespec_get': '#include <time.h>',
'memfd_create': '',
'random_r': '',
'flock': '',