Mesa (1020-u_queue-c-173-7-error-implicit-declaration-of-function-timespec_get-is-invalid-in-c99): Set the C standard version to C11

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 14 17:23:57 UTC 2021


Module: Mesa
Branch: 1020-u_queue-c-173-7-error-implicit-declaration-of-function-timespec_get-is-invalid-in-c99
Commit: 2d9858f2a3e65dfc7f7517dbfda84bac909b4581
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d9858f2a3e65dfc7f7517dbfda84bac909b4581

Author: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
Date:   Thu Jan 14 09:19:27 2021 -0800

Set the C standard version to C11

timespec_get() was added in C11, so we should set the appropriate language version.

https://gitlab.freedesktop.org/mesa/mesa/-/issues/1020

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>

---

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 932eb136681..4ece8cac900 100644
--- a/meson.build
+++ b/meson.build
@@ -26,7 +26,7 @@ project(
   ).stdout(),
   license : 'MIT',
   meson_version : '>= 0.52',
-  default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c99', 'cpp_std=c++14']
+  default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++14']
 )
 
 cc = meson.get_compiler('c')



More information about the mesa-commit mailing list