hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 40c275f642e3895aeb748403fcdfd92d7d875d65 Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Mon, 10 Jan 2022 14:54:02 +0100
Subject: [PATCH] build: set c_std=c99
 
Set explicitly the C standard to use to make sure we don't use
features not available on our target platforms.
 
Signed-off-by: Simon Ser <contact@emersion.fr>
 
[Retrieved from:
https://gitlab.freedesktop.org/wayland/wayland/-/commit/40c275f642e3895aeb748403fcdfd92d7d875d65]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 
diff --git a/meson.build b/meson.build
index cab267e9..e9691ffe 100644
--- a/meson.build
+++ b/meson.build
@@ -5,7 +5,8 @@ project(
     meson_version: '>= 0.52.1',
     default_options: [
         'warning_level=2',
-        'buildtype=debugoptimized'
+        'buildtype=debugoptimized',
+        'c_std=c99',
     ]
 )
 wayland_version = meson.project_version().split('.')
-- 
GitLab