diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2022-02-19 13:19:08 +0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-06-09 17:23:34 +0000 |
commit | b2ddec4e98fea9b824e7258468e5b5da9ba848b0 (patch) | |
tree | 0f86a76ffc46f5a9a31a55e9db423f48c3358381 /src/mapi/es2api | |
parent | fe01757ddf067414646032f5fd7ffc5a4d332591 (diff) |
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>
Diffstat (limited to 'src/mapi/es2api')
-rw-r--r-- | src/mapi/es2api/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/es2api/meson.build b/src/mapi/es2api/meson.build index 8b133daa131..65a4803ff1d 100644 --- a/src/mapi/es2api/meson.build +++ b/src/mapi/es2api/meson.build @@ -56,7 +56,7 @@ libgles2 = shared_library( link_args : [ld_args_gc_sections], include_directories : [inc_src, inc_include, inc_mapi], link_with : libglapi, - dependencies : [dep_thread, dep_libdrm, dep_m, dep_dl], + dependencies : [dep_thread, dep_libdrm, dep_m, dep_dl, idep_mesautilc11], soversion : host_machine.system() == 'windows' ? '' : '2', version : '2.0.0', darwin_versions : '3.0.0', |