c11: Implement c11/time.h with c11/impl/time.c
Create c11/time.h instead of put timespec_get in `c11/threads.h` Creating impl folder is used to avoid `#include <time.h>` point the c11/time.h file Detecting if `struct timespec` present with meson Define TIME_UTC in `c11/time.h` instead `c11/threads.h` Define `struct timespec` in `c11/time.h` when not present. Implement timespec_get in c11/impl/time.c instead threads.h Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15497>
This commit is contained in:
@@ -81,7 +81,7 @@ libglapi_static = static_library(
|
||||
static_glapi_files,
|
||||
include_directories : [inc_mesa, inc_include, inc_src, inc_mapi],
|
||||
c_args : [c_msvc_compat_args, static_glapi_args],
|
||||
dependencies : [dep_thread, dep_selinux],
|
||||
dependencies : [dep_thread, dep_selinux, idep_mesautilc11],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user